Vertically Centering Text in a TextBox

I have a textbox that I have defined with a height of 83px. My fontSize is 54 for the textbox. This forces the text into the lower portion of the textbox, but I would like it vertically centered (the standard height for a text box with this font is normally quite a bit larger). I’ve tried various padding’s in the style properties and I’ve tried vertical-align but nothing seems to work.

You can use css to do that. Define your target div then set the height and line-height the same.
It’s implemented a different way for Bootstrap and jQuery.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.