I’m using the @media screen (-webkit-min-device-pixel-ratio:0) hack to specifically address Webkit browsers.
But it doesn’t seem to work, does anybody know if this hack is deprecated?
Is there other ways to target Webkit browsers?
Update: Not deprecated, I forgot to put an “and” after “screen”.
The following example will show a colored background on
#boxin Chrome and Safari, but not Firefox and Opera.If that isn’t sufficient, you can have a look at this article about browser-specific CSS hacks on Webmonkey. It includes work-arounds for both Internet Explorer, Firefox, Safari, and Opera, and the example above.