Hack for Webkit

If you want to target Webkit only, use this in your CSS:

@media all and (-webkit-min-device-pixel-ratio: 1){
     selectors {
           properties: values;

Put all your Webkit only properties and valus withing the @media at-rule block.

This entry was posted in Browsers, CSS (including hacks), Web Development. Bookmark the permalink.

3 Responses to Hack for Webkit

  1. Tatsh says:

    Beware, this attribute may go away in the future when things are standardised.


  2. Estelle Weyl says:

    Thanks @tatsh. Love your post on @media browser targeting.

  3. David Oliver says:

    Terrible idea, as per Tatsh’s comment.

Leave a Reply

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