Does anybody know if there is a fix for Safari vh rule?
#what{
min-height:70vh;
}
All working ok, in all browsers, but only in Safari it is not recognized? Is there a fix for safari, that we can use VH rule in css?
Does anybody know if there is a fix for Safari vh rule?
#what{
min-height:70vh;
}
All working ok, in all browsers, but only in Safari it is not recognized? Is there a fix for safari, that we can use VH rule in css?
Instead of Vw/Vh, use rem with this JavaScript. The "run code snippet" might create confusion, cause its window "resizes" by zooming. To test this, just copy this code into some html file and run it in Safari and other browsers (or see "Full Page").
For more explenation, see this article that I ve found. http://css-tricks.com/theres-more-to-the-css-rem-unit-than-font-sizing
Depending on your code, you can use this trick:
in front of vh value use % or em, or pixels, so that the browsers that do not support it take the value: