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

vertical align the text within a text box.

100+
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!


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


100+
P: 200
Hi,

padding-top : 2px;

Thank You

Regards
Feb 4 '08 #2

drhowarddrfine
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.