Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specific stylesheet for IE8

How can I make a specific CSS stylesheet for Internet Explorer 8?

I mean, how can I load it only if the browser is IE8? (And not IE7 and IE6)

like image 888
aneuryzm Avatar asked May 08 '10 15:05

aneuryzm


2 Answers

use this

<!--[if IE 8]>
<link href="/stylesheets/iestyle8.css" rel="stylesheet" type="text/css" />
<![endif]--> 
like image 148
red-X Avatar answered Sep 27 '22 21:09

red-X


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

http://www.quirksmode.org/css/condcom.html

like image 23
meo Avatar answered Sep 27 '22 23:09

meo