Equivalent of valign=center for <p> with css

Posted by Brian on Stack Overflow See other posts from Stack Overflow or by Brian
Published on 2010-03-18T23:30:55Z Indexed on 2010/03/18 23:41 UTC
Read the original article Hit count: 312

Filed under:
|

I have the following code on my page:

<p align="justify" style="font-size:10pt;display:block;height:200px;vertical-align:middle;"> 
Content
</p> 

I want the text to be vertically aligned in the center of the p tag, but vertical-align:middle doesn't seem to be doing the trick. Is there a way to do this?

© Stack Overflow or respective owner

Related posts about html

Related posts about css