Search code examples
firefoxbrowsermozillacompatibility

Can I add an if statement for mozilla firefox stylesheet?


Hi I'm editing a website that has been made compatable with internet explorer so it doesn't work in firefox.

Is there any way to add a firefox or mozilla stylesheet?

Thanks for you help Judi

<!--[if FIREFOX]>
    <link rel="stylesheet" type="text/css" href="/AEBP_Homepage_12887/css/firefox.css" />
<![endif]-->

Solution

  • No. The <!--[if IE]><![endif]--> syntax is Internet Explorer specific. It is a non-standard microsoft extension to CSS.

    See conditional comments for more details.