8 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<form action="/target.aspx" method="post">
<fieldset id="formular">
<legend>Anmeldung</legend>
<ol>
<li>
<label for="username">Username:</label>
<input type="text" id="username" name="username">
</li>
<li>
<label for="passwd">Passwort:</label>
<input type="password" id="passwd" name="password">
</li>
</ol>
</fieldset>
</form>
1
2
3
4
5
6
7
8
9
10
#formular ol li label {
display: inline;
display: -moz-inline-box; /* vermutlich die PROBLEMZEILE */
width: 140px;
}
#formular ol, #formular ol li {
margin: 0; padding: 0;
list-style: none;
}
QuoteDas liegt definitiv an meinem -moz-inline-box-Hack.
1
2
3
4
5
6
7
8
9
#formular ol li label {
display: block;
float:left;
width: 140px;
}
#formular ol li {
clear: left;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title>Test</title>
<body>
<ul>
<li style="border-bottom:1px solid #000">
<label for="test" style="float:left;display:block;width:140px;">Eingabe:und ein Zeilenumbruch...........</label>
<input type="text" name="input" id="test">
<div style="clear:both;" />
</li>
</ul>
</body>
</html>
8 Einträge, 1 Seite |