Wednesday, February 9, 2011

CSS For IE

<link href=styles.css rel=stylesheet />
<!--[if lt IE 9]><link href=ie.css rel=stylesheet /><![endif]-->

If the user browser is IE and also less than IE 9 then call ie.css


Adding IE-wersion classes on the html tag

<!--[if lt IE 9]><html class="ie8" lang="en" /><![endif]-->

div {
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
.ie8 div {
background: url(corners.gif)
}

No comments:

Post a Comment