Vertically Align Div in Center of page
Posted on 2009-04-30
I have created a holding page for a website which consists of a 900x550px div positioned on a black body background. I have managed to achieve horizontal centralising by specifying the width in the CSS and then applying automatic margins, but I also wish to align the div centrally vertically as well.
This is my current HTML structure:
The 'container' div is what i want aligning centrally vertically. Does anybody know of a CSS method that will achieve this?