Sent by Gunlaug_Sørtun on 13 September 2004 15:03
Oliver, you wrote:
> .... I've modified the expression like so:
> <!--[if IE 6]>
> <style type="text/css" media="screen">
> #container { width: expression((documentElement.clientWidth
> <725) ? "725px" : "auto" ); }
> #container iframe { width:
> expression((documentElement.clientWidth
> < 642) ? "642px" : "auto" );}
> </style>
> <![endif]-->
IE-expressions take their width from the browser-window, and set the
resulting values on the element. At least that's how they act.
If I've managed to visualize your layout / problem, you may have more
luck if you try something like this:
---
#container { width: expr.....
#container iframe { width: expression(documentElement.clientWidth
<642? "630px" : "98%" ); }
---
This will give IE-win its percentage-width, without affecting the other
expression. However, IE's calculations are not flawless, so you may have
to look at both expressions.
When the browser-window is smaller than 642px, the iframe will hold at
630px, else it will span 98% of its container. 630px is close to 98% of
642 (if I'm awake), so the jog shouldn't be much. Trim those values -
all 3 if necessary - until it look alright.
It is often better to use a percentage instead of 'auto', and trim the
"___px" value on sight. The result get less jumpy that way.
Need some examples? You'll find them here:
http://www.gunlaug.no/homesite/main_8_2.html
(bilingual site, select language on arrival)
good luck
Georg
______________________________________________________________________
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/