View Full Version : How do you left align a Button's text?

15 Jul 2010, 8:41 AM
I've already tried to use the style with a text-align:left, which does not work for the text.

I also tried using html: '<span style="text-align:left">Choose ' + localStorage.getItem('CustomerLabel') + '</span>',
which works, but I can't use html, since there is no setHtml method.

I need to left align the text of a button, then later change that text. How does one do this?

Thanks again.

15 Jul 2010, 8:58 AM
NM. I just saw that the text attribute accepts html. Thanks.