Chrome and Safari Specific Browser Hack for CSS

Just learned about this one. This allows you to make changes only to Chrome and Safari which both tend to render the same but often slightly differently than Firefox and IE.
@media screen and (-webkit-min-device-pixel-ratio:0) { /* hacked for chrome and safari */
#mainNav li { margin:0 26px 0 0; }
}

Leave a Reply

Your email address will not be published. Required fields are marked *