Use different CSS for Different IE Browser

User face problem for formatting CSS in different browser. Some CSS attributes support by particular browser but other browser does not support. So in this blog i will tell you how we use different CSS for different browser.
 
In sample application I created two style sheet IE8.css and IE9.css. IE8.css will be work for IE8 browser and IE9.css will be work for IE9 browser.
 
How to achieve  this, I gave the reference of both StyleSheet by the line given below:
 
<!--[if IE 8]>
         <link href="IE8.css" rel="stylesheet" type="text/css" />
         <![endif]-->
     <!--[if IE 9]>
         <link href="IE9.css" rel="stylesheet" type="text/css" />
         <![endif]-->
 
When you will run the sample application it will show the font color red in IE8 and blue IE9.
Ebook Download
View all
Learn
View all