Is it possible to vertically center the text in a weblabel control?
[code] dim js as string
js = js + “mypee = document.getElementById(’”+Label1.ControlID+"’).getElementsByTagName(‘div’); "
js = js + "mypee.style.top = ‘60%’ ; "
By default, the value I change on the second line is 50%. 60% will push the text down. Lower values will have it move up.
You don’t have to go through that. Turn off MultiLine to get it to center vertically.
With standard fonts, that suffices indeed. However, with some fonts, singularly handwritten or calligraphic ones, it is often necessary to go further, since standard vertical alignment becomes inadequate.
Thanks, Michel, I will try that.