The div inside another div picture and code below. Because there will be text and images of the parent div. And red div will be the last element of the parent div.
<
This is one way
But because the inner div is positioned absolutely, you'll always have to worry about other content in the outer div overlapping it (and you'll always have to set fixed heights).
If you can do it, it's better to make that inner div the last DOM object in your outer div and have it set to "clear: both".