/    Sign up×
Community /Pin to ProfileBookmark

css <if IE> statements

hoping someone can help, inputing if IE and endif statements for different css for different browsers. the statements work, safari and firefox show up just fine, however in IE i get “<![if gt(IE6)!]> <![endif]> ” at the top of the page. Here is the code as follows in a template

<![if !IE]>

<link rel=”stylesheet” type=”text/css” href=”../stylesheets/notIE.css” />

<![endif]>
<![if gt(IE6)!]>
<link rel=”stylesheet” type=”text/css” href=”../menu.css”> <![endif]>

The link to the page is the following: [url]http://www.angioscreen.com/about.htm[/url]

Any help anyone can provide would be great.

Thanks,

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@joeyeaJan 18.2011 — try?

[code=html]
<!--[if !IE]><!-->
<!--<![endif]-->

<!--[if IE]>
<![endif]-->
[/code]
Copy linkTweet thisAlerts:
@lswebmediaauthorJan 18.2011 — joey thanks, that actually didnt work. It greys it out like its a comment and doesn't affect the site. I tried something else that i think fixed it. I took out the <!if gte(IE6)]> statement leaving just the link to that particular css, but left the if !IE statement in for safari and the others I think that fixed the problem. All indications shows its working.
Copy linkTweet thisAlerts:
@joeyeaJan 18.2011 — oh right ok, my bad! I jsut check the site I did and thats what I had done too ?

But yea, it was the
[code=html]<![if gt(IE6)!]>[/code]

that looked like it was causing the problem anyway!

but well done for playing around with it yourself ?
×

Success!

Help @lswebmedia 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 5.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...