evanmcd
evanmcd

Reputation: 1969

is there a way of targeting Firefox 3.6 and below using CSS?

I want to separately target Firefox 3.6 and below via CSS selectors without access to JS or server-side mechanisms. Is there a way to do that?

Upvotes: 0

Views: 762

Answers (1)

Knu
Knu

Reputation: 15136

body:-moz-last-node #element {/* ≤ Firefox 3.6 */}
:-moz-any(html) #element {/* ≥ Firefox 4 */}

The second rule is there to reset recent versions of Gecko-based browsers.
But remember that it will probably be dropped in favour of :matches() in the near future.

Upvotes: 2

Related Questions