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

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

From: Jonas Salling <salling@cooper.xanthus.se>
Date: Mon, 23 Feb 1998 21:50:49 +0100
To: <www-style@w3.org>
Message-Id: <98Feb23.230527gmt+0100.28721-1@mimer.upnet.se>
Just wanted to have this potential IE4 'misfeature' verified by people who
know the specification well.

My impression after reading the CSS2 spec. is that the following snipped
should produce a 200pt-wide red strip.

<DIV style="padding-left: 20pt; padding-right: 20pt; border-left: solid
20pt; border-right: solid 20pt; margin-left: 20pt; margin-right: 20pt;
width: 200pt;">
<P style="background-color: red;">200 pts of red</P>

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?

Senior Software Engineer
Xanthus' iWrite
Received on Monday, 23 February 1998 15:52:16 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:46 UTC