Answer the question
In order to leave comments, you need to log in
How to stretch a div 100% to display height?
Hello.
Can you please tell me how to stretch a div by 100% according to the height of the display from which the user entered? It is the height of the display and not the height of the page. This is usually done on various landing pages. The first screen per page is rubbed tightly to the bottom of the display. Is it possible to do this without JS? If not, how is it done by scripts?
Answer the question
In order to leave comments, you need to log in
html, body { height: 100%; }
.block { height: 100%; }
Thanks for the help. Here is another article in Russian on vw / vh.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question