The Freshman
The Freshman

Reputation: 25

Conditional Comment ie7 not working

So I put the ie7 conditional comment in my head tag directly underneath the comment to pull up the original style.css file:

Then I made a css file called ie7.css made a few changes in the css...

Checked IE7 to look at the site http://www.sgconstruction.org and no changes were visible...

I have no idea why it's not making any changes. Any help would be greatly appreciated. Thank you!

Upvotes: 0

Views: 571

Answers (2)

saltcod
saltcod

Reputation: 2031

For people who come late, I think this is a better, more up to date way to go about targeting specific versions of IE: http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/

Upvotes: 0

Scott
Scott

Reputation: 21882

You have multiple calls to stylesheet links. After your IE7 conditional, the main style sheet (themes/SG/style.css) is called again, making your conditional stylesheet pointless (at it's current location).

Upvotes: 4

Related Questions