Sent by Tom Gilder on 12 August 2002 13:01
On Monday, August 12, 2002, 6:40:14 AM, stylo~ wrote:
> 1) How it should work, border on the first P
> The container I put the float in *contains* the float:
<snip>
> 2) How the w3c has it work
> The IMG escapes its P container, blasts through the border, and ruins the
> page, as in the pic you cite: http://www.w3.org/TR/CSS2/images/float2p.gif
I suggested to www-style a few days ago that there should be a new property to
change this behavior, see
<http://lists.w3.org/Archives/Public/www-style/2002Aug/0078.html>. Nobody has
replied yet.
> This is terrible. Who in his right mind ever wants that? Always the same
> problem, and necessitates garbage code being added to force the container to
> stretch.
It can actually be useful. For instance, see
<http://tom.me.uk/2002/8/css-float-example.html>.
> Any suggestions on how best to force the container to stretch???
See the above www-style post.
> So, for the life of me, I still can't figure why the float container
> shouldn't contain the float, and why the spec shouldn't be changed.
I don't believe the spec should be changed, that would be chaotic. I just feel a
new property should be added for CSS3.
--
Tom Gilder
http://tom.me.uk/