• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.

firefox conditional statement

4 posts in this topic

for internet explorer we have

<--[if ie]>


what is the mozilla firefox code? i researched this and came up with

<--[if Gecko]>


But it is not working.

i am linking the cascading style sheets to my html page.

like this-


<!--[if Gecko]>
<link href="CSS/index.css" rel="stylesheet" type="text/css">
<h1>text 1</h1>
<h2>text 2</h2>


@charset "utf-8";
/* CSS Document */

body{/* background image and settings */
hgroup {/* text center */


Share this post

Link to post
Share on other sites

Why not code your site for Firefox and add exceptions for other browsers you intend to support? This would be easier than making exceptions for everything... :whistle:


Share this post

Link to post
Share on other sites

But there are CSS hacks for other browsers, ex. for Opera:

noindex:-o-prefocus, body {
font-size: 81.3%}

I use this on my website because Opera scales % differently than other browsers (in this case it's set to 87.5% for the rest).

Edited by tomasz86

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.