The above is an example of vertically centering an element of known height. The following CSS was used:
#content { background-color:green; width:150px; height:100px; margin-top:-50px; position:absolute; top:50%; }
All other CSS & the 'test' div element are there for show.