One technique that I use (when I have to) is this:
/* begin box model hack */
height: 262px !important;
height: 261px;
height/**/:/**/261px;
/* end hack */
Basically, Gecko based browsers will use the first value, IE 5.x/Win will apply the
second value and IE 6/Win will apply the last value.
More hacks to differentiate between IE and gecko bases browsers can be found at:
http://css-discuss.incutio.com/?page=BoxModelHack
Regards,
David McDonald
Web Designer
Melbourne, Australia
http://www.davidmcdonald.org
ICQ:11814164
----- Original Message -----
From: James Silva <[EMAIL PROTECTED]>
Date: Friday, November 7, 2003 12:03 pm
Subject: [WSG] hiding styles from mozilla
>
> Hi guys,
>
> Is there a known CSS hack to hide styles from Mozilla based browsers?
>
> For those that are curious...
>
> I've got a client that is hell bent on having a fixed height site
> (sigh).They want the header/footer to remain fixed while the body
> content scrolls.
>
> Now, this is straight forward to achieve using a frameset...
> but(!) frames
> are evil, the site is 95% complete so i dont want to start choping
> it up
> now... and... frames are evil.
>
> so... i thought, using the overflow property would work nicely on
> the main
> content DIV. Problem is, it leaves an ugly horizontal scrollbar
> across the
> bottom. So, next best option was to use a IE only property,
> "overflow-y"
> (not ideal, i know).
>
> In order for the IE only overflow-y to work, i need to set a fixed
> height on
> the DIV. This causes Moz based browsers to effectively overflow
> the text
> OUTSIDE the boundary of the containing div. Meaning the footer now
> sits at
> the END of the DIV, while the text overflows straight over footer
> (its ugly,
> trust me). Opera (and hopefully other browsers) automatically
> resize the
> height to accommodate the content (which is a reasonable compromise).
>
> So, i could leave the IE only scroll effect in place *if* i could
> somehowhide the HEIGHT property from Moz based browsers...
>
> any ideas?
> ____________________________
> James Silva
> Web Production
> Gruden Pty Ltd
>
> Tel: +61 02 9956 6388
> Fax: +61 02 9956 8433
> Email: [EMAIL PROTECTED]
> Web: http://www.gruden.com
> ____________________________
>
> *****************************************************
> The discussion list for http://webstandardsgroup.org/
> *****************************************************
>
>
*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************