Ja ich weiß.. Unsaubere weiße.. Jedoch hab ich 0 Plan wie das mit CSS geht.
input[type="text"], input[type="password"] {
border:none;
background:url("img/bg.png") no-repeat;
width:50px;
height:20px;
outline:none;
}
<link rel="stylesheet" type="text/css" href="style.css" />
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
input[type="text"], input[type="password"] {
border:none;
background:url("img/bg.png") no-repeat;
width:50px;
height:20px;
outline:none;
}
</style>
</head>
<body>
</body>
</html>
Dazu ist noch wichtig zu sagen, mit welcher Priorität die Styles gehandhabt werden.Quote:
in Css wäre das einfach
Variante 1. externes stylesheet
deine style.css:
und in deiner index.html im <head>Code:input[type="text"], input[type="password"] { border:none; background:url("img/bg.png") no-repeat; width:50px; height:20px; outline:none; }
Variante 2. im <head> direktCode:<link rel="stylesheet" type="text/css" href="style.css" />
sind natürlich alles fiktive Werte.Code:<!DOCTYPE html> <html> <head> <style type="text/css"> input[type="text"], input[type="password"] { border:none; background:url("img/bg.png") no-repeat; width:50px; height:20px; outline:none; } </style> </head> <body> </body> </html>