Jump to content

[SOLVED] Firefox ignores conditional statements?


Recommended Posts

Why are my conditional statements not working...

 

<![if IE 7]> <link type="text/css" rel="stylesheet" href="http://www.starwarsrevolution.net/main_ie.css" /> <![endif]>

<![if !IE 7]> <link type="text/css" rel="stylesheet" href="http://www.starwarsrevolution.net/main.css" /> <![endif]>

 

I.E. loads the first one, Firefox loads BOTH. Why's this?

 

I want all Browsers to only load the second one except I.E. which needs to only load the first one... what am I doing wrong?

These don't work either...

 

<!--[if IE]>
<link type="text/css" rel="stylesheet" href="http://www.starwarsrevolution.net/main_ie.css" />
<![endif]-->

<!--[if !IE]>
<link type="text/css" rel="stylesheet" href="http://www.starwarsrevolution.net/main.css" />
<![endif]-->

 

<!--[if IE]>
<link type="text/css" rel="stylesheet" href="http://www.starwarsrevolution.net/main_ie.css" />
<![endif]-->

<link type="text/css" rel="stylesheet" href="http://www.starwarsrevolution.net/main.css" />

This worked...:

 

<!--[if IE]>
<link type="text/css" rel="stylesheet" href="http://www.starwarsrevolution.net/main_ie.css" />
<![endif]-->

<![if !IE]>
<link type="text/css" rel="stylesheet" href="http://www.starwarsrevolution.net/main.css" />
<![endif]>

 

Sorry for triple posting, don't blame me - blame the edit limit.

 

Though after a few Hours of work I found out that I could fix my IE 7 issue with adding min-height:100% to an element...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.