Monday, 4 May 2009

IE Hacking - Apply Styles only to IE

Some scenarios, we need to apply styles only specific to browser. So, here is a small way to hack apply styles only for IE - We need to add inline comments (//) at start of the line.
Example:
min-height:300px; /*For other browsers*/
//min-height:380px; /*For IE */

// comments won't read by Mozilla.

No comments:

Post a Comment