Zoe M. Gillenwater wrote:
> Sophie Dennis wrote:
>   
>> IE6 treats "width" as "min-width"
>>     
>
> No it doesn't. This is a common myth. IE treats height like min-height, 
> but not width like min-width. Case in point: make a page with a div with 
> a red background. Give it min-width 500px. Observe that in Firefox the 
> div will grow to fill the window at all widths except 500 and below, at 
> which point it's fixed at 500px. Observe that in IE the div will never 
> grow to fill the window but will always be 500px. Not the same at all.
>
> Not picking on you, Sophie -- lots of people make this mistake -- but 
> this myth continues to get propagated and it's one of my pet issues to 
> squash it. :-)
>
> Zoe
>   
Hi Zoe,

You are quite right and quite right to pull me up on it. Serves me right 
for posting without brain engaged properly.

I should have said that in certain cases you can use IE6's mishandling 
of overflow on a fixed width element to simulate the min-width behaviour 
of other browsers. But you can't use it to create fluid/flexible layouts 
in the way you can with proper min-width support.

In fact, isn't this the same as height/min-height? It isn't that height 
in IE6 is *the same as* min-height. It's that IE will expand a box to 
fit its content, regardless of height/width specified. So in IE6 
"height: 500px" won't give the same effect as "height: 100%; min-height: 
500px" will in other browsers, just as "width: 500px" doesn't give the 
same effect as "width: 100%; min-width: 500px".

Now I've engaged brain here I think I may need to join your mission to 
squash sloppy thinking on this one ;-)   [hangs head in shame...]

Sophie

-- 
Sophie Dennis, Creative Director
Cayenne Web Development Limited
www.cayenne.co.uk

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to