Tylko dla IE
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="tylko_ie.css" />
<![endif]-->
Dla wszystkich innych oprocz IE
<![if !IE]>
<link rel="stylesheet" type="text/css" href="style.css" /> <![endif]>
IE7
<![if IE 7]>
<link rel="stylesheet" type="text/css" href="ie_7.css" /> <![endif]>
IE6
<![if IE 6]>
<link rel="stylesheet" type="text/css" href="ie_6.css" /> <![endif]>
IE5
<![if IE 5]>
<link rel="stylesheet" type="text/css" href="ie_5.css" /> <![endif]>
IE5.5
<![if IE 5.5000]>
<link rel="stylesheet" type="text/css" href="ie_55.css" /> <![endif]>
Wszystkie ponizej IE6
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="ie_lt_6.css" />
<![endif]-->
Jesli nie chcesz dla kazdej przegladarki tworzyc nowego pliku css mozesz uzyc klas CSS
IE7
*+html #div {
height: 100px;
}
Dla wszystkich innych oprocz IE
#div {
_height: 100px;
}
Ukryj klase dla IE6
html > body #div {
height: 100px;
}
IE6 i nizej
* html #div {
height: 100px;
}
Zrodlo