Monday, October 8, 2012

CSS Hack for Google Chrome and Safari

Google Chrome and Safari Browser

The key to targeting Google Chrome and Safari browser, just combine this code (@media screen and (-webkit-min-device-pixel-ratio:0) { your style }) on your style. For example: (see the yellow marker below)

@media screen and (-webkit-min-device-pixel-ratio:0) {
   body {
      background: #ff0000; /* for G.Chrome and Safari */
   }
}

No comments:

Post a Comment