Friday, May 31, 2013

CSS Hack for Google Chrome,Safari,ie7,ie8

@media screen and (-webkit-min-device-pixel-ratio:0)
{
.classname{ background:#ccc; } /*It will works on Google chrome and safari */
}

IE7

.classname{*background:#ccc; } /*It will works on IE7 */
.classname{background:#ccc \9; } /*It will works on IE8 */

No comments:

Post a Comment

Please mention your comments.......