Link to home
Start Free TrialLog in
Avatar of tf2012
tf2012

asked on

vertical centering a <p> tag in a div.. automatically

I have a fixed height div and I want to center a <p> tag that will vary in length, so it has to center vertical inside the div automatically.  I tried padding:0 auto 0 auto; and it didn't work.

How can this be done?   It's wordpress so I assume css 3 is available
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tf2012
tf2012

ASKER

Thanks for replying, it seems to sit well without trying to force any centering on it so I'll close the question.  Re CSS3.... thanks.. I was automatically equating html5 & css 3 with word press but you are right.