Wednesday, July 01, 2009

Browser specific CSS hacks

Safari 3 Specific Hack:


@media screen and (-webkit-min-device-pixel-ratio:0) {
/* Safari 3.0 and Opera 9 rules here */
}

eg:


@media screen and (-webkit-min-device-pixel-ratio:0) {
body { background-color: blue; }
}


Firefox 3 HACK: example:

html>/**/body #con_left, x:-moz-any-link, x:default {
padding: 104px 0px 0px 1px;
}