Thursday, June 9, 2011

Css hack for IE6, IE7, IE8

To write the css hack for different version of IE, 

.color {color: #777;} /* for all browsers */
 * html .color {color: #C39;} /* for IE6 */ 
*+html .color {color: #66F;} /* for IE7 */
 .color {color: #0FC\0/;} /* for IE8, going last */

No comments:

Post a Comment