I have a div which height can change. Inside this div I would like to place another div that would always stay at the bottom-left corner, even if the parent div height would change. Do you know how to do it?
In order to keep a div at the bottom at all times, the only way to do it (without javascript calculating the bottom) is to use relative positioning on the parent element and absolute positioning on the child element. I don't know if using absolute positioning for such a thing is always best though.
However, if you think about it ... if you have an element with automatic height (as much as the content within it), the last element of the content will always be at the bottom left corner of the parent element. So basically the functionality you're after is the default behaviour of elements.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.