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

Re: Inline borders

From: Ernest Cline <ernestcline@mindspring.com>
Date: Fri, 18 Apr 2003 00:25:47 -0400
To: Michael Day <mikeday@yeslogic.com>
CC: www-style@w3.org
Message-ID: <3E9F460B.24049.2E6E092@localhost>

Michael Day 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. IE 5 incorrectly 
considered the border and padding to be part of the width and height of 
a box.  IE6 can work correctly but it chooses whether to support the 
buggy behavior or the correct behavior based on the DOCTYPE of the 
document.

http://msdn.microsoft.com/library/en-us/dnie60/html/cssenhancements.asp
explains how IE6 makes it decision.
Received on Friday, 18 April 2003 00:26:44 GMT

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