B
B
bulldojka2014-10-03 10:57:27
css
bulldojka, 2014-10-03 10:57:27

How to explain to Safari what is height in vh?

Help me solve the following problem:
On the site, I set the height of the blocks in vh. It looks great in all browsers, but safari refuses to see these blocks (they are empty, only the background).
Is it curable?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Petrov, 2014-10-03
@bulldojka

Only with the help of polyfills like Viewport Units Buggyfill , vminpoly and similar.
That is, emulation using JS of what is not supported in the current version of the browser. You can use more general polyfills that cover more than just units of measure.

I
ixon, 2014-10-03
@ixon

Safari does not support this unit. Try using other units that Safari supports, such as vw, which is essentially the same as vh, though I don't know if Safari supports it.
To make it easier to translate all units in your code, try using SCSS, SASS, and others.
It is unlikely that it will be possible to force something to recognize.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question