Post

Target Webkit (Safari and Chrome) Browsers Only.

A few weeks ago I wrote a post about how to target Firefox in your CSS. Today I had an unusual issue that was appearing on Webkit browsers only and needed a quick fix. I came across a smart way of doing just that using a media query. Here you go:

@media screen and (-webkit-min-device-pixel-ratio:0) {
     /*webkit only CSS goes here*/
}

I found this code on the website: CSS, Javascript, and XHTML Explained.