Vertically Centering Multi-line Text

Found a great article that demonstrates vertically centering multiline text.  It uses display:table and display:table-cell among some IE hacks.

Found a better post on stack overflow that does this.  The idea is to have an outer div with a specific height and the same line height.  Then a span inside to define your true line height.

 

keywords: css vertical center text
source: http://css-tricks.com/vertically-center-multi-lined-text/
source: http://stackoverflow.com/a/14850381

Tagged with: ,

Leave a Reply