Kathirvel K

Archive for February 2014

We can write CSS hacks using media queries also,

/* IE6/7 uses media, */
@media, {
.dude { color: green; }
.gal { color: red; }
}

/* IE8 uses */
@media all {
.dude { color: brown; }
.gal { color: orange; }
}

/* IE9 uses \9 */
@media all and (monochrome:0) {
.dude { color: yellow\9; }
.gal { color: blue\9; }
}

Advertisements
Tags: ,