Vertically Centering text in textbox


#1

Does anyone know of a way of vertically centering text in a textbox if you override the automatic height of the textbox?
For example, I want a Bold Fontsize of 62 in a Textbox that I have set the height to be 100. The text appears normally, but it is near the bottom of the textbox - can I center if vertically? I’ve tried various padding and margin settings, but it doesn’t seem to have any effect.


#2

This article may help:

http://blog.nsbasic.com/2015/06/responsive-design-centering-a-button-vertically/


#3

object.style.verticalAlign=“top”… or “center” or “bottom”