W3C home > Mailing lists > Public > www-style@w3.org > April 2003

Re: Inline borders

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 18 Apr 2003 00:02:58 -0500
Message-ID: <3E9F8702.5060507@mit.edu>
To: Ernest Cline <ernestcline@mindspring.com>
CC: www-style@w3.org

Ernest Cline wrote:

>>Why doesn't adding a thick border to an inline element affect the height
>>of the line it is on? This causes the border to overlap the text.
> 
> You're probably running afoul of a bug in IE.

Er... no.  The height of the line box does not depend on the borders or 
padding of the inlines inside it in the CSS2 box model.  See 
http://www.w3.org/TR/CSS21/visudet.html#q17

If I understand correctly, the question was "Why does the CSS2 box model 
stipulate this behavior?"

-Boris
Received on Friday, 18 April 2003 01:03:03 GMT

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