Vertically Align text in a Div

Posted by shinjuo on Stack Overflow See other posts from Stack Overflow or by shinjuo
Published on 2010-05-30T19:02:13Z Indexed on 2010/05/30 19:12 UTC
Read the original article Hit count: 193

Filed under:
|
|

I am trying to find the most effective way to align text with a div. I have tried a few things and none seem to work.

.testimonialText
        {
            position: absolute;
            left: 15px;
            top: 15px;
            width: 150px;
            height: 309px;
            vertical-align: middle;
            text-align: center;
            font-family: Georgia, "Times New Roman", Times, serif;
            font-style: italic;
            padding: 1em 0 1em 0;
        }

© Stack Overflow or respective owner

Related posts about text

Related posts about div