Posted By

blueocto on 01/01/11


Tagged

with line-height vertical centering


Versions (?)

Vertical centering with line-height


 / Published in: CSS
 

URL: http://cssglobe.com/articles/one_liners/line_height.html

When you have a container with fixed height you can use line-height property to vertically center the content.

  1. line-height: 24px;

Report this snippet  

You need to login to post a comment.