Sent by Philippe Wittenbergh on 9 December 2002 14:02
OK, I'm a bit in doubt here, and the specs are not clear (both CSS2 and
CSS2.1).
Consider the following css
div#wrapper { width:600px, border: 1px solid #c00;}
div#floatbox (float;left; width:200px}
p.txt {width:598px; border: 1px solid #dcb}.
#floatbox and p.txt are nested in div#wrapper.
What would you expected to happen ? Does the paragraphs expand out of
div#wrapper, or do they wrap in the div#wrapper ? Mozilla an Opera6 do
the latter, IE 5 Mac does expand the paragraphs out of the boundaries of
the div#wrapper. Which one is wrong ?
testfile: <http://www.l-c-n.com/IE5tests/float/floattest5.html>
Quote the specs: "Since a float is not in the flow, non-positioned block
boxes created before and after the float box flow vertically as if the
float didn't exist." </quote>
<http://www.w3.org/TR/REC-CSS2/visuren.html#floats>
Philippe
== | == | == | == | == | == | == | == | == | == | == | ==
Philippe Wittenbergh
code | design | web projects : <http://www.l-c-n.com/>
online image gallery : <http://www.l-c-n.com/phiw/>