How can I set position of a <div>
to the bottom of page with either CSS or jQuery?
Without using position: absolute , you'd have to vertically align it. You can use vertical-align: bottom which, according to the docs: The vertical-align CSS property specifies the vertical alignment of an inline or table-cell box.
We can also align the content of div to bottom using flex property. Use the display: flex to the element and add align-items: flex-end to align it to the end.
Use position:absolute
and 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