Previous Message
Next Message

why doesn't IE recognize min-width ?

Sent by Kevin P. Fleming on 3 August 2004 16:04


Chris Heilmann wrote:

> Quote:
> The trick to getting around min-width in IE is actually pretty easy. IE
> treats width as if it were min-width. By exploiting the fact that IE
> doesn’t support child selectors either (more on this later) we can create
> a simple bit of code that doesn’t allow a browser window to shrink below a
> certain size:
> 
> body {
>  width: 700px;
> }
> html>body {
>  width: auto;
>  min-width: 700px;
> }
> /Quote

OK, so I tried this exact technique (in replacement of using 
"minmax.js"), and it does not have the desired effect.

While it does keep IE from allowing the body to be shrunk below 700px, 
it also _always_ displays at 700px, instead of growing to match any 
larger window size. What am I missing?

Also, as stated in the quote, it does not restrict the browser window 
from being resized at all, it only restricts the content from being 
resized below the specified size. Sizing the browser window to anything 
narrower than 700px causes a horizontal scroll bar to be displayed, as 
expected.
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: