Posts Tagged ‘Text’
Saturday, February 27th, 2010

CSS
It’s pretty easy to center text in a div using CSS…horizontally that is. But what about when you try to use CSS to center text vertically? Just a bit tricky, huh? The trusty “vertical-align:middle” CSS method works wonders in a table td, but somehow fails you when you try it in a div. And you don’t want to have to resort to using a table JUST to vertically center text. Here’s the CSS solution that lets you vertically center text in a div.
(more…)
Tags: Center Vertically, CSS, CSS Paragraph, Div, Text, Vertical Align
Category: All Categories, CSS, Design Stuff | 1 Comment »