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.

2 Responses to Hack for Webkit

  1. Tatsh says:

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

    http://www.tatsh.net/2011-03-26/css-target-ie-firefox-and-webkit-browsers-including-mobile

  2. Estelle Weyl says:

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

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>