To sum it up, there are few approaches to align content vertically in container. These are main approaches (if you now some completely different way to do it, it would be ve
Not the best way to do it, but you could use two divs to force the pink box to always be centered, with one "pushing" the other:
http://jsfiddle.net/EjV4V/25/
This approach should work with IE7, though you would always have to use fixed margins.