- use
flex: 1
on the child you want to grow to fill the space
or
margin-top: auto
to push the child away as far as it will go from the neighbor
Is less widely supported. Should work in Chrome Canary and Firefox Dev.
<body> | |
<div class="content"> | |
content | |
</div> | |
<footer class="footer"></footer> | |
</body> |