CSS Hacks for Browser Compatibility


Address browser-specific issues with CSS hacks, though use sparingly and consider maintenance.

Source Code

/* Safari and Chrome */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .selector { property: value; }
}

/* Firefox */
@-moz-document url-prefix() {
    .selector { property: value; }
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments