scott blanchard wrote:

Copy this example to an .html file and test it in mozilla, netscape or IE.
It appears to break from the containment rules. Here are the problems that
this example exposes:

1) The image inside the span should force the div's height to be atleast as
tall as the image's specified height of 100px. But you see the div
shrinkwraps to the text, not the image contained in its child span element.

2) The second div should not be affected by the first div's child's float
attribute, or should it?
If you read the CSS spec, in particular this bit: <http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-float> I think you will see that what you are seeing is the correct behaviour, and what you think should happen is not what the spec says.

Tim.




Reply via email to