The following html and css show two divs inside the container. The left div does not float; the right div moves to the right.
The correct div, apparently, one pixel is too narrow, and therefore the container's red background appears in that one pixel span.
This is a simplification of my problem. http://jsfiddle.net/XPd9J/
HTML
<div class="inner-wrapper"> <div class="right-sidebar"> </div> <div class="content"> <br /><br /> </div> </div>โ
CSS
.inner-wrapper { position:relative; background-color:red; overflow:auto; width:90%; padding:0; margin:20px 0 0 20px; } .right-sidebar { position:relative; width:40% !important; background-color:lime; float:right; margin:0; padding:0; } .content { position :relative; width:60%; background-color:silver; margin:0; padding:0; }โ
css google-chrome css-float
Wotnot
source share