put this on the element:
display: table cell;vertical-align: middle;
and then on its parent:
display: table;
it will be centered vertically