Alastair Campbell wrote:

> I'm trying to replicate this seemingly simple CSS for IE:
> 
> #mainwrap, #header { width: 58.5em; max-width: 97%; }

You can't. You'll have to reverse it, like this...

#mainwrap, #header { width: 97%; max-width: 58.5em; }

...which will have the same effect - and can be simulated by an
IE-expression.

> The two examples I could find which do work, do not set any font 
> size: http://www.svendtofte.com/code/max_width_in_ie/ 
> http://www.fu2k.org/alex/css/frames/ems
> 
> Is this possible in IE 5-6, or am I heading down a dead end?

IE-expression will work - in the right order and without font-size
defined on the layout-carrying elements...
Example: <http://www.gunlaug.no/tos/moa_12a.html>
...you'll have to declare all font-sizes further in.

> And if there are any good references for IE expressions, that would 
> be nice :)

Some newly updated ones on my site.
Simulate 'px' and 'em' based 'min/max-width'...
<http://www.gunlaug.no/contents/wd_additions_14.html>

Simulate 'position: fixed' in IE/win...
<http://www.gunlaug.no/contents/wd_additions_15.html>

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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