I have a div, with an image that needs to be stuck to the bottom-right corner. This is easily done with:
#div1 {
position: relative;
}
#div1 img {
position: absolute;
bottom: 0;
right: 0;
}
However, the height of the div changes dynamically as pieces of a series of nested lists show and hide themselves on hover events. When the height of the div changes, the image remains where it was placed when the page loaded. How can I get the image to move with the bottom of the div as it shifts up and down?