Julian Jorgensen
03-11-2009, 01:50 PM
Greetings!
Just wandering if you'd know how to "overwrite" a css file. Intuitively I figured this would work:
<code>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="includes/stylesheet-ie.css">
<![endif]-->
</code>
Where all the same style names (e.g. #wrapper) would be replaced by the last stylesheet (i.e. stylesheet-ie.css if loaded with IE 7).
Here's the problem: I successfully load the stylesheet in IE but it's not replacing all the styles. It's still using the styles from stylesheet.css.
Now, this is a VERY simple question but I'm a bit confused (and it probably sounds harder than it is).
Anyway any suggestions is highly appreciated!!
Thank you!
Just wandering if you'd know how to "overwrite" a css file. Intuitively I figured this would work:
<code>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="includes/stylesheet-ie.css">
<![endif]-->
</code>
Where all the same style names (e.g. #wrapper) would be replaced by the last stylesheet (i.e. stylesheet-ie.css if loaded with IE 7).
Here's the problem: I successfully load the stylesheet in IE but it's not replacing all the styles. It's still using the styles from stylesheet.css.
Now, this is a VERY simple question but I'm a bit confused (and it probably sounds harder than it is).
Anyway any suggestions is highly appreciated!!
Thank you!
