/    Sign up×
Community /Pin to ProfileBookmark

if IE conditional statement not working

I’m currently using the following code and it doesn’t seem to be working. My site still seems to be using the main.css stylesheet no matter what browser it is. I want the site to use ieSpecific.css if the user is on Internet Explorer.

[CODE]
<!–[if IE]>
<link href=”_css/ieSpecific.css” rel=”stylesheet” type=”text/css” />
<![endif]–>

<link href=”_css/main.css” rel=”stylesheet” type=”text/css” />[/CODE]

Thanks

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@Jeff_MottJan 11.2009 — Swap the order of those two things. You want to include the IE styles last so that they override the main styles.
×

Success!

Help @ajs819 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...