To vertical align anything in the middle, create a div and specify its height and line height to the same value. The example below uses 30px but it can be any amount.
Try this css code to align things vertically yourself.
vertically aligned text