.block { /* just enough style here to make this show that the div is larger than the text */ height : 100px; background-color: #93CCEA; } .center-align { display: table-cell; vertical-align:middle; }
<div class="block center-align"> Some inline text </div>