I need a one div to be in Chrome only, so i used a code:
It works, but causes a validation error:Code:div.chrome_hack{ display:none; } @media screen and (-webkit-min-device-pixel-ratio:0) { div.chrome_hack{ display:block; } }
Is there a better solution?110 Property -webkit-min-device-pixel-ratio doesn't exist for media screen : 0 0
And if there isn't can we say this solution is correct?