M
M
Maxim Boyko2021-05-11 22:39:18
css
Maxim Boyko, 2021-05-11 22:39:18

Why is it possible to press the footer only with this (height: 100vh;) parameter?

I tried to push the footer to the bottom of the page using flex, nothing worked, I found a way that you just need to add "height: 100vh;" to body or another main container. I don’t quite understand what the value of 100hv means, I didn’t encounter this before, before it pressed even without these parameters, maybe it was because there was enough content on the page.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
noob_wp, 2021-05-13
@noob_wp

.footer {
position: absolute;
bottom: 0;
width: 100%
}
write it down and you will be happy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question