see also a test file with left–floated block.
float
Some text here; Layout=true (min-width)
float
Some text here; Layout=true (max-width)
float
Some text here; Layout=true (width)
float
Some text here; Layout=false
.testgrid {min-width:100px}
.testgrid::after {content:"[.]"; display:block; clear:both; visibility:hidden; height:0;}
.testgrid p {margin:10px; background:#6c8}
.testgrid p.x1 {float:left; width: 100px; height:100px; background:url(bg.gif) repeat 10px 10px; border:2px solid #000;}
p.x2 {min-width:100px;}
p.x3 {max-width:600px;}
p.x4 {width:80%;}
Last modified: May 13 2006 07:07:11 GMT.