Answer the question
In order to leave comments, you need to log in
How to use 100vh correctly?
Hello. Such a situation:
The site has a header, under it there is a block with a picture for the entire height of the screen. I set the min-height parameter to it: 100vh. The block is stretched and a scroll appears the size of the height of the site header.
Can you tell me how to remove this scroll? Iterating over the min-height value is not an option. I tried to set a fixed height for the header, and then min-height: calc(100vh - #{$headerHeight}). It works, but it looks like a crutch.
Are there any more elegant options?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question