EDIT: Nevermind, I worked it out. I changed the div positions to relative from absolute (if anyone else has the same problem) I've been searching around for the past hour and cannot find any explanation of how to do this. So I have 2 divs stacked on top of each other. If the content in the first div shrinks, the div below it needs to rise by the amount the content shrank by (so if the content height shrank by 15px, then the "top" attribute of the other div needs to reduce by 15 px, otherwise there would be a gap between div #1 and div #2). The same would apply if the height increased (obviously). So is there a way to do this? I don't want to have to change the position manually every time I change the content.