Center element vertically

#content {position:absolute; top:50%; height:240px; margin-top:-120px; /* negative half of the height */}

1 Comment

You must be logged in to post a comment.


  1. It's a good technique. xD