hack for mozilla browsers?

J

Jerry

Hi all,

does anybody know a hack for CSS, so only Mozilla (Firebird, Firefox, Mozilla
Suite, Netscape) will obey the definitions and not IE or Opera?

THANKS,
Jerry
 
T

Toby A Inkster

Jerry said:
does anybody know a hack for CSS, so only Mozilla (Firebird, Firefox, Mozilla
Suite, Netscape) will obey the definitions and not IE or Opera?

The general way to hide from IE is to use advanced CSS selectors that IE
can't understand, but if you want to also hide from Opera you're going to
have trouble, as Opera is pretty damn good at CSS.

Try this one for size:

http://www.goddamn.co.uk/tobyink/scratch/hack

Whither the bill?
 
A

A Hess

Somewhere around 2/14/04 8:10 AM, Jerry typed wildly with reckless abandon:
Hi all,

does anybody know a hack for CSS, so only Mozilla (Firebird, Firefox,
Mozilla Suite, Netscape) will obey the definitions and not IE or Opera?

THANKS,
Jerry

I found this a while ago:

style {
IE styles go here;

/*
then there's this snippet that IE sees the closing curly, but others
dont, so everything below it is hidden from IE, but not other browsers
*/
voice-family: "\"}\"";
voice-family:inherit;

Moz, etc. styles go here;
}

I'm not exactly sure what exactly makes it work, but it works for
everything I've used it for.
 
T

Toby A Inkster

A said:
/*
then there's this snippet that IE sees the closing curly, but others
dont, so everything below it is hidden from IE, but not other browsers
*/

Not entirely true. Opera below version 7 sees the same as IE in this hack,
but Opera 7.x sees the same as Mozilla. So it's not quite was the doctor
ordered.
 
J

Jerry

I found this a while ago:

style {
IE styles go here;

/*
then there's this snippet that IE sees the closing curly, but others
dont, so everything below it is hidden from IE, but not other browsers
*/
voice-family: "\"}\"";
voice-family:inherit;

Moz, etc. styles go here;
}


Any difference between this IE hack and

html>body ?
 
W

Woolly Mittens

Jerry said:
Hi all,

does anybody know a hack for CSS, so only Mozilla (Firebird, Firefox, Mozilla
Suite, Netscape) will obey the definitions and not IE or Opera?

html>body .mydefinition {
/* MSIE doesn't see this */
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top