I would like to position a child div at the very bottom of its parent. Normally, I understand this could be done using position: absolute;
bottom: 0;
- However, this places the child to the bottom of the screen in view, but my page has overflow-y, as height: 1000px;
(i.e. the content scrolls below), and it is this which I want the parent to be positioned at the bottom of (so that it is visible only when you scroll down to the very bottom).
Here is a very simple example of my problem on codepen.
You need to position the element in relation to the parent
In your case this means applying
position: relative;
to the parent.Codepen Demo