Brett Derry wrote:
> www.midlandsco-op.com/xmas

> I'm having trouble in declaring a value for when the site is between 
> 950 and 782px and I'm yet to find a happy medium.

> I would be most grateful if someone could have a look at where I'm 
> going wrong.

You're basically changing the *wrong* number. "99.7%" or "99%" is close
enough.

It's the 'attack values' for 'max' and 'min' that need changing. Those
'attack values' are layout-dependent, so they must be tuned to each
layout. For your page the following will work quite smoothly.

Change...
  > 1024 ? "950px"
      ...to...
  > 960 ? "950px"

...and change...
  < 800 ? "782px"
      ...to...
  < 790 ? "780px"

...and use 99% as fluid 'in between' value.

The result should be...

* html #mainwrap {width: 780px /* fallback value */;
width:expression(((document.compatMode &&
document.compatMode=='CSS1Compat') ?
document.documentElement.clientWidth :
document.body.clientWidth)
  > 960 ? "950px" : (((document.compatMode &&
document.compatMode=='CSS1Compat') ?
document.documentElement.clientWidth :
document.body.clientWidth) < 790 ? "780px" : "99%")); }

...and I've included the 'star html' hack since IE7 should not see this
workaround for IE6 and older versions.

It's all tested in IE6 and ready to go.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
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