Define the parent with display: table and the element itself with vertical-align: middle and display: table-cell.