back to introduction
The same test, but using float:right instead of float:left.
paragraph.Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
overflow:hiddenparagraph.Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
overflow:autoparagraph.Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
paragraph, overflow:hidden. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
paragraph, overflow:auto. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
div.inflow {background:#d8ebff;}
div.overflowH {background:yellow; overflow:hidden;}
div.overflowA {background:#ffd4cc; overflow:auto;}
p.overflow-pH { background:#ccc; overflow:hidden;}
p.overflow-pA { background:#daf2e8; overflow:auto; }
div#one {float:left; width:100px; height:200px; border:2px solid lime; background:#f1f1f1}
div, the element completely collapses and disappears from view.{zoom:1} is used here. This is not needed for IE 7, in the case of the overflow property, it behaves more according to the specifications.div in IE 5 Mac. Erroneous handling of horizontal margins in Opera and Safari (margin–box slides under the floated block). The computed width for those elements is correct, but the left–margin should not collapse with the margin of the floated block.Last modified: May 25 2006 02:53:48 GMT.