Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


firefox conditional statement

- - - - -

  • Please log in to reply
3 replies to this topic


  • Member
  • 8 posts
  • Joined 20-August 11
  • OS:Windows 7 x86
  • Country: Country Flag
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 */

I'm not fluent in stupid, So please speak slowly and clearly.

How to remove advertisement from MSFN



    K-Mart-ian Legend

  • Super Moderator
  • 10,098 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag


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:

MSFN RULES | GimageX HTA for PE 3-5 | lol probloms



    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,804 posts
  • Joined 13-January 06
For the record, CSS conditional comment only work for IE: http://www.quirksmod...ss/condcom.html.




  • Member
  • PipPipPipPipPipPipPipPip
  • 2,529 posts
  • Joined 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag
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, 30 July 2012 - 01:09 AM.

Updates Lists for Windows 2000 @ http://windows2000.tk
Unofficial SP 5.2 for Microsoft Windows 2000 @ MSFN
Please post all your comments, questions and suggestions regarding my work on Windows 2000 in the Hotstream forum @ MSFN.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users