Answer the question
In order to leave comments, you need to log in
Footer with flexbox?
Hello! Tell me, who can, what is the problem. I made the footer stick to the bottom of the page using flexbox:
body{
display: flex;
height: 100vh;
flex-direction: column;
}
.layout {
width: 100%;
flex: 1 0 auto;
}
footer{
width: 100%;
height: 150px;
}
Answer the question
In order to leave comments, you need to log in
I found a mistake - in the body you need to specify min-height: 100vh instead of height
And a new question - how to make it work in IE? :)
In it, flexboxes conflict with min-height...
Maybe someone knows?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question