I am trying to use flexbox to position my footer. I would like traditional behavior of the footer - if content is smaller than viewport, it's on the bottom of the screen. If content is larger than viewport, it's below the screen. I have the second option but the first one is causing troubles - instead it is below the screen.
I have something like:
<div style="display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh;">
<div>header</div>
<div>main</div>
<footer>footer</footer>
</div>
I would expect the browser to calculate the height of the footer and take that into account when distributing the space between the elements. Didn't happen...