Another thing to note is that if you want a absolute element to be confined to a parent element then you need to set the parent element's position to relative. That will keep the child element contained within the parent element and it won't be "relative" to the entire window.
I wrote a blog post that gives a simple example that creates the following affect:
That has a green div that is absolutely positioned to the bottom of the parent yellow div.
1 http://blog.troygrosfield.com/2013/02/11/working-with-css-positions-creating-a-simple-progress-bar/