Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conditional Comments Firefox

Are there specific Conditional Comments available for older versions of Firefox? (eg 3.0)

like image 925
Nutmeg Avatar asked Jun 15 '10 00:06

Nutmeg


People also ask

What is the reason for using conditional comments?

Conditional comments are conditional statements interpreted by Microsoft Internet Explorer versions 5 through 9 in HTML source code. They can be used to provide and hide code to and from these versions of Internet Explorer.

How do you use conditional comments in HTML?

Conditional comments are conditional statements to hide or provide HTML source code from Internet Explorer. 2. There are two types of conditional comments - downlevel-hidden - which is used to hide HTML source and downlevel-revealed which is used to reveal HTML source code in Internet Explorer.


2 Answers

No, they are only supported by IE.

There are CSS hacks though. See: http://perishablepress.com/press/2009/06/28/css-hacks-for-different-versions-of-firefox/

like image 91
Aaron Harun Avatar answered Sep 22 '22 14:09

Aaron Harun


Not to my knowledge. As far as I know, conditional comments are an Internet Explorer-only feature.

QuirksMode.org agrees.

like image 21
AgentConundrum Avatar answered Sep 21 '22 14:09

AgentConundrum