/    Sign up×
Community /Pin to ProfileBookmark

I want to load a seperate CSS for IE users

Can somebody point me towards some javascript that will allow me to use a different style-sheet for IE users, it’s killing me in positioning.

thanks!

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@abhay_dashyJun 20.2007 — I suppose you are using PHP for web programming then I suggest you to use this logic....

check the SERVER - HTTP_USER_AGENT and if it's windows use IE CSS else use normal CSS...

I hope it will make things clear to you...

get back if you need any more help

Regards,

Abhay K. Singh
Copy linkTweet thisAlerts:
@felgallJun 20.2007 — The best way to do it is using HTML.

<link type="text/css" rel="stylesheet" href="general.css">

<!--[if IE]>

<link type="text/css" rel="stylesheet" href="ie.css">

<![endif]-->
Copy linkTweet thisAlerts:
@Jeff_MottJun 20.2007 — &lt;link href="styles.css" type="text/css" rel="stylesheet"&gt;
&lt;!--[if IE]&gt;&lt;link href="ie-styles.css" type="text/css" rel="stylesheet"&gt;&lt;![endif]--&gt;
http://msdn2.microsoft.com/en-us/library/ms537512.aspx


Edit: Guess I was too slow.
×

Success!

Help @amberfrances 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.19,
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,
)...