Re: Inline borders

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 UTC