Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


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.