
Untitled
By: a guest on
May 7th, 2012 | syntax:
None | size: 1.01 KB | hits: 9 | expires: Never
Why won't first div in this html display as a column next to the rest of the html that is float:right
<div style="padding-top:20px; float:left; width:50%; clear:both">Column 1</div>
<div class="" style="padding-bottom: 10px; padding-right:20px; width: 50%; float:right; clear:both;">
<label for="title">
<h3 style="text-align:left">Column 2</h3>
</label>
</div>
<div class="" style="padding-bottom: 10px; padding-right:20px; width: 50%; float:right; clear:both;">
<input type="text" maxlength="255" value="">
</div>
<div class="" style="padding-bottom: 10px; padding-right:20px; width: 50%; float:right; clear:both;">
<label for="body">
<h3 style="text-align:left">Column 2</h3>
</label>
</div>
<div class="" style="padding-bottom: 10px; padding-right:20px; width:50%; float:right; clear:both;">
<textarea maxlength="60000"></textarea>
</div>
.box {
width: 50px;
padding: 50px;
}
#col1{
float:left;
width:50%;
{
#col2{
float:left;
width:50%
}
<div id="col1"></div>
<div id="col2"></div>