Jump to content

Different CSS for different browsers... something doesn't work


Recommended Posts

Hello to everyone, i back to write on this forum because I have another small problem ...
I created two different css files, one for firefox (global.css) and one for IE (global_ie.css), since both browsers made me see the site differently.

I inserted the following string in the <head> of header.tpl file:

<link rel="stylesheet" type="text/css" href="http://www.gustirari.com/themes/Gustirari/css/global_ie.css" /><![endif]-->


The string seems correct, but unfortunately doesn't work correctly. Now both Firefox and IE use the file global_ie.css; but I want this to be used only by IE, while Firefox has to use the classic global.css .

Unsure what to do, I also thought of adding the correct string for Firefox and then I wrote this after the last string:

<link rel=“stylesheet” type=“text/css” href=“http://www.gustirari.com/themes/Gustirari/css/global.css” /><![endif]-->

This should address firefox to correctly css (global.css). I 've tried and it works, except in this case, IE is no longer recognized his global_ie.css... but it use global.css like firefox...

I tried to insert spaces in the begin and ending tags of those strings... but nothing...

What can i do???? Where did I wrong??

This problem makes me crazy :)

Thanks to everyone

Bye Niko

Link to comment
Share on other sites

me i use this line

<!--[if !IE]> <!-->
<link rel=“stylesheet” type=“text/css” href=“http://www.gustirari.com/themes/Gustirari/css/global.css” />
<!--
Instead of

and this one for IE

<!--[if IE]>
<link rel=“stylesheet” type=“text/css” href=“http://www.gustirari.com/themes/Gustirari/css/global_ie.css” />

try it, may be it will work

Link to comment
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
×
×
  • Create New...