4 replies [Last post]
cbpalm
Offline
newbie
Last seen: 15 years 31 weeks ago
Timezone: GMT+1
Joined: 2004-02-13
Posts: 3
Points: 0

For style definition, is there also a Mozilla hack, that only browsers from the Mozilla family will obey?

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 46 weeks 18 hours ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

mozilla hack

Hi

Yes, it's called the child hack (I think). Can't remember where I saw it, but it looks like this:

html>body .yourtagname {styles}

It ONLY works if the tag after the > is a direct child of the one in front of it (as body is to html) and then you put the class or id name.

Trevor

Big John
Big John's picture
Offline
Enthusiast
Arizona
Last seen: 15 years 47 weeks ago
Arizona
Timezone: GMT-7
Joined: 2003-10-29
Posts: 94
Points: 0

mozilla hack

Both Opera and IE/mac can read that selector.
There is a selector that only Mozilla and Op7 support:

html[xmlns] .targetelement {styles}

However, the page must be xhtml for that hack
to work.

http//www.positioniseverything.net/

cbpalm
Offline
newbie
Last seen: 15 years 31 weeks ago
Timezone: GMT+1
Joined: 2004-02-13
Posts: 3
Points: 0

mozilla hack

Thanks!
But I need a hack that only Mozilla (Firebird, Firefox, Netscape) will obey and not IE and Opera.

Big John
Big John's picture
Offline
Enthusiast
Arizona
Last seen: 15 years 47 weeks ago
Arizona
Timezone: GMT-7
Joined: 2003-10-29
Posts: 94
Points: 0

mozilla hack

Here are the known hiding hacks in all their glory:

http://www.dithered.com/css_filters/css_only/

It's tough to seperate Op7 and Gecko, and any
method to do so depends on css support or lack
thereof in fast evolving browsers. Good luck.

http//www.positioniseverything.net/