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.

0 komentar:

Post a Comment

Related Posts with Thumbnails
GiF Pictures, Images and Photos