im trying to find a css hack for just safari NOT chrome, i know these are both webkit browsers but im having problems with div alignments in chrome and safari, each displays differently.
i have been trying to use this but it affects chrome as well,
@media screen and (-webkit-min-device-pixel-ratio:0) {
#safari { display: block; }
}
does anyone know of another one that will just apply to safari please?
Step 1: use https://modernizr.com/
Step 2: use the html class .regions to select only Safari
Modernizr will add html classes to the DOM based on what the current browser supports. Safari supports regions http://caniuse.com/#feat=css-regions whereas other browsers do not (yet anyway). This method is also very effective in selecting different versions of IE. May the force be with you.
hi i ve made this and it worked for me
This hack 100% work only for safari. I've just tested it with success.
It working 100% in safari..i tried
I like to use the following method:
Replace your class in (.myClass)
/* Safari only */ .myClass:not(:root:root) {
enter code here
}