/ Published in: CSS
![](/img/icon_sav.png?v3)
When you have a container with fixed height you can use line-height property to vertically center the content.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
line-height: 24px;
URL: http://cssglobe.com/articles/one_liners/line_height.html
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)