Aureole Posted October 10, 2007 Share Posted October 10, 2007 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? Link to comment https://forums.phpfreaks.com/topic/72681-solved-firefox-ignores-conditional-statements/ Share on other sites More sharing options...
Aureole Posted October 10, 2007 Author Share Posted October 10, 2007 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" /> Link to comment https://forums.phpfreaks.com/topic/72681-solved-firefox-ignores-conditional-statements/#findComment-366494 Share on other sites More sharing options...
Aureole Posted October 10, 2007 Author Share Posted October 10, 2007 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... Link to comment https://forums.phpfreaks.com/topic/72681-solved-firefox-ignores-conditional-statements/#findComment-366557 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.