W3C home > Mailing lists > Public > www-style@w3.org > March 1998

Re: IE4 using 'width'/'height' props the wrong way?

From: Ian Graham <igraham@smaug.java.utoronto.ca>
Date: Wed, 4 Mar 1998 14:27:37 -0500 (EST)
Message-Id: <199803041927.OAA17759@smaug.java.utoronto.ca>
To: www-style@w3.org
h&kon wrote:
> 
> Jonas Salling writes:
> 
> > My impression after reading the CSS2 spec. is that the following snipped
> > should produce a 200pt-wide red strip.
> > <DIV style=3D"padding-left: 20pt; padding-right: 20pt; border-left: solid
> > 20pt; border-right: solid 20pt; margin-left: 20pt; margin-right: 20pt;
> > width: 200pt;">
> > <P style=3D"background-color: red;">200 pts of red</P>
> > </DIV>
> 
> Correct.
> 
> > Unfortunately, IE4 (Win) seems to define 'width' as being the width of the
> > content PLUS padding and border. Is this a bug, or am I just confused after
> > having spent too many hours working with our rendering machinery?
> 
> It's a bug.
> 
In those cases where it supports percentage widths, Netscape Navigator
4 also implements this incorrectly -- I recall that Navigator 4 
always measures percent widths relative to the full width of the 
browser canvas, indepenent of the parent element width, or any defined
padding/margin/border...

Ian
Received on Wednesday, 4 March 1998 14:28:00 GMT

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