Jonas Salling writes: > 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> > </DIV> > > 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? I can't test IE4 right now, but your description of what it should do is correct. Assuming the background of the DIV is not red, you should indeed see a red rectangle of 200pt wide. (Btw. the 'margin-right' in the above fragment is ignored.) Bert -- Bert Bos ( W 3 C ) http://www.w3.org/ http://www.w3.org/people/bos/ W3C/INRIA bert@w3.org 2004 Rt des Lucioles / BP 93 +33 4 93 65 76 92 06902 Sophia Antipolis Cedex, France +33 (0)4 92 38 76 92 (<--- after 5 Jan 1998)Received on Tuesday, 24 February 1998 02:52:33 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:54 GMT