Absolute positioned method 2

This method uses an absolute positioned div with negative margins on it.

The div is positioned half the way down the screen, with a negative top margin of half the height of the content.

This will cause the container div to be centered vertically.

For horizontal spacing use auto margins.

More info