Forum : load different css for different browsers
Brief description  about Online courses   join in Online courses
View Noor  Mohammed 's Profile

load different css for different browsers

Hello sir,

Could you please give the code to load different CSS for three different browsers (Firefox, IE, oprea). I tried this code but I am unable to get it working.

<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="styleie.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="styleie.css" />
<![endif]-->
<[if !IE]>
<link rel="stylesheet" type="text/css" href="style.css" />
<[endif]>

Many thanks regards.
Asked by Noor Mohammed | Dec 15, 2010 |  Reply now
Replies (3)
View teacher siliconindia 's Profile
Hi
Sorry for opera we dont have any other code, Firefox and opera, safari all show same.

Regards
Dec 19, 2010
View noor mohammed 's Profile
Thank you so much sir,

Its working with IE but this is still not working with Opera.

<!--[if Opera]>
<link href="opstyle.css" rel="stylesheet" type="text/css" />
<![endif]-->

Dec 16, 2010
View teacher siliconindia 's Profile
Hi

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

<!--[if IE 6]>
<link href="homeoutside/forie.css" rel="stylesheet" type="text/css" />
<![endif]-->

<!--[if IE 7]>
<link href="homeoutside/forie7.css" rel="stylesheet" type="text/css" />
<![endif]-->


Take 3 different styles

Regards
Dec 16, 2010