W3C home > Mailing lists > Public > www-style@w3.org > February 2000

Re: Horizontal rules

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Thu, 17 Feb 2000 07:23:03 -0800 (PST)
Message-ID: <20000217152303.23568.qmail@web903.mail.yahoo.com>
To: www-style <www-style@w3.org>
--- Allan Odgaard <Duff@DIKU.DK> wrote:
> What about the problem I pointed out with floats? E.g.:
> 
> <Div>
>    <Img Align=Left Width=200 ...>
>    <Hr>
> </Div>
> 
> Here the float should (intuitively) be the width of the containing
> element MINUS the width of the floating image, but block level elements
> don't respect floats when calculating widths.

I'm not sure I understand what you are saying.

I presume you mean that the DIV is floating.

If so, the issue of width calculation does not exist because you are
required to set width on floats (and once you have set it, nothing in the
element will affect that).

If not, the width of the DIV is simply a static block, and as such its
width is not affected by its content. Its height _is_ however (although
not by floats except insofar as they cause displacement of text within
line boxes).

=====
----------------------------------------------------------
From Matthew Brealey (http://members.tripod.co.uk/lawnet (for law)or http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for CSS))
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
Received on Thursday, 17 February 2000 10:23:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:04 GMT