Hallo,
ich möchte ein Input-Feld mit einer Breite von 100% einsetzen:
Soweit funktioniert das ja auch. Allerdings verzieht sich alles sobald ich im Dokument
angebe.
Kann mir das jemand erklären?
ich möchte ein Input-Feld mit einer Breite von 100% einsetzen:
HTML:
<html lang="de">
<head>
</head>
<body>
<div style="width: 50%; height: 60px; background-color: gray; padding: 10px;">
<form>
<formfield>
<input type=text style="width:100%; display: block;z-index:2;height:40px;padding: 5px 50px 5px 20px">
<input type=button style="width:30px;height:40px;float: right; margin-top: -40px; display: block; z-index:1;">
</formfield>
</form>
</div>
</body>
</html>
Soweit funktioniert das ja auch. Allerdings verzieht sich alles sobald ich im Dokument
HTML:
<!DOCTYPE html>
Kann mir das jemand erklären?