By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,196 Members | 1,725 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,196 IT Pros & Developers. It's quick & easy.

vertical align the text within a text box.

P: 200
Hi, I need help please!

I want to vertical align the text within a text box.

I can set the vertical align of the text box but not the text.

My text box has a style property of: style ="height : 20px; border : 1px solid #CCCCCC;"

but my text is to high on top in the text box

I tried the following:
text-align : center; - but that moves the text to the center horizontally
vertical-align : sub;

Please Asist!

Feb 4 '08 #1
Share this Question
Share on Google+
2 Replies

P: 200

padding-top : 2px;

Thank You

Feb 4 '08 #2

Expert 5K+
P: 7,435
What do you mean by a "text box"?
Feb 4 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.