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)
CSS Code:
body { background: #ffffff; } /* background color “WHITE" for other browsers */
@media screen and (-webkit-min-device-pixel-ratio:0) {
body {
background: #ff0000; /* background color "RED" for G.Chrome and Safari browsers */
}
}











