How can I make a div stick to the bottom of the parent div, not necessarily the bottom of the viewport? I still want to place content below the parent div.
I'd like to do this with cross-browser compatibility and no JS if possible.
Read up about css position: http://www.w3schools.com/css/css_positioning.asp
Basically you can position a div with absolute anywhere within a parent that has position relative.
.parent {
position: relative;
}
.child {
position: absolute;
bottom: 0;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With