Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Target safari css, but not chrome [duplicate]

Ran into a problem, where chrome and safari display margin differently. But both of them are webkit, so can't really use a prefix. Is there any solution, or hack that could help with it?

like image 676
user3353748 Avatar asked Apr 25 '14 18:04

user3353748


1 Answers

Found somewhere else here. worked fine for me

@media screen and (-webkit-min-device-pixel-ratio:0) { 
/* Safari and Chrome */
.myClass {
 color:red;
}

/* Safari only override */
::i-block-chrome,.myClass {
 color:blue;
}
}
like image 137
user3353748 Avatar answered Oct 26 '22 19:10

user3353748