Vertically aligning text in a div with CSS

Tables were good. When you tell it to align something somewhere, it'd work!

Divs are also good, it keeps your mark-up clean.

But when it comes to displaying grids of data in divs... who the fuck decided it was time to deprecate tables!?

Anyways, you're probably here because "vertical-align: middle;" isn't working on your div. Either that or I'm back because I've forgotten how this works.

Problem is, you need to also set "line-height: ##px;".

[ Source ]

Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog