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

Re: Horizontal rules

From: Allan Odgaard <Duff@DIKU.DK>
Date: Thu, 17 Feb 2000 17:01:36 +0100
To: WWW-Style@W3.Org
Message-ID: <yam8082.1827.150528384@smtpserver.get2net.dk>
On 17-Feb-00, Matthew Brealey wrote:

>> <Div>
>>    <Img Align=Left Width=200 ...>
>>    <Hr>
>> </Div>
> I'm not sure I understand what you are saying.
> I presume you mean that the DIV is floating.

No, it was the image that I wanted to float (to the left), the 'div' was just a
dummy container. Normally the above would be rendered as:

+---------------- div ---------------+
| +-------+                          |
  |       | ========== HR ==========
  | Image |
  |       |
  +-------+

But for CSS where the HR element becomes a block level box then it will get the
width of its parent without respecting any floating objects (though its
potential inline children will) -- so the border of this block level HR box
will collide with the image like this:

+---------------- div ---------------+
| +-------+                          |
  |=======|====== HR ===============
  | Image |
  |       |
  +-------+

Regards Allan
-- 
     URL: http://www.DIKU.dk/students/duff/
<sb>
I am Windows of Borg. Prepare... oops, out of memory!
Received on Thursday, 17 February 2000 11:04:07 GMT

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