Forum Moderators: not2easy
I'm having these problems with IE 5.5 though they may also be problems in other browsers.
html:
<div class="container">
<div class="left">
right left
</div>
<div class="right">
right column
</div>
<div class="spacer"> </div>
</div>
css:
.container{
margin: 0 150px;
background:red;
padding:5px;
}
.left, .right {
width: 30%;
background:blue;
}
.left {
float: left;
}
.right {
float: right;
}
.spacer {
padding:0;
margin:0;
clear:both;
}
This set up doesn't work only if the sum of all columns' widths makes 100% (because of rounding errors), If it is less than 99% (including borders and padding), it must be OK.