It looks like the problem is the fact that you've set the bottom class to have an absolute position. That means that come hell or high water, that div is going to be at 488 X 208 px, regardless of other content. Changing the position to 'relative' might change it, but we can't be sure without seeing all your code (though I can understand your reasoning for only showing some of it).
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.