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

Re: shrink-wrap

From: Ray Merrell <Ray.Merrell@IESA.Co.UK>
Date: Thu, 6 Apr 2000 11:40:10 +0100
Message-ID: <01BF9FBC.DDFF0910.Ray.Merrell@IESA.Co.UK>
To: "www-style@w3.org" <www-style@w3.org>


http://www.alarmist.org/news/2000/03/census.html
is ugly in IE because IE nonstandardly shrink-wraps the box at
the top of the page.  (It should be as wide as the viewport.)
<snip>

IE4 does extend the box to the width of the main text body (100% of the 
parent container, in this case 75% of the screen width). IE5 however, does 
not. I have read somewhere (http://www.siteexperts.com/dhtmllib/intro3.asp) 
that the default behavior for this sort of thing has caused problems with 
absolutely positioned elements  obscuring active elements beneath them (the 
div in question is absolutely positioned with no specified width).

Is this a deliberate change in thinking from Microsoft (for whatever 
reason), or is this just an IE5 bug?

BTW, NSCommunicator 4.7 shrink wraps it as well.
IMHO, with the padding of the body set like it is and the fact that the div 
is absolutely positioned to the left edge of the screen, it looks pants 
with a width that stretches 75% of the way across the screen. In this case, 
the best results are obtained with a shrink-wrapped div, or a specified 
width of 100% of the body regardless of padding.

Regards.
Ray.
Received on Thursday, 6 April 2000 06:43:39 GMT

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