gecko/layout/html/tests/formctls/bugs/bug95937.html

67 lines
1018 B
HTML

<html>
<head>
<style>
div.row {
clear: both;
padding-top: 10px;
}
div.row span.label {
float: left;
width: 100px;
text-align: right;
}
div.row span.formw {
float: right;
width: 335px;
text-align: left;
}
div.spacer {
clear: both;
}
</style>
</head>
<body>
<form>
<div style="width: 85%; background-color: #cc9;
border: 1px dotted #333; padding: 5px;
margin: 0px auto";>
<div class="row">
<span class="label">Name:</span><span
class="formw"><input type="text" size="25" /></span>
</div>
<div class="row">
<span class="label">Age:</span><span
class="formw"><input type="text" size="25" /></span>
</div>
<div class="row">
<span class="label">Shoe size:</span><span
class="formw"><input type="text" size="25" /></span>
</div>
<div class="row">
<span class="label">Comments:</span><span
class="formw">
<textarea cols="25" rows="8">
Go ahead - write something...
</textarea>
</span>
</div>
<div class="spacer">
&nbsp;
</div>
</div>
<input type="text">
</form>
</body>
</html>