Sthokala
asked on
how to set text alignment for the button
Hi,
I created a button using java script, I want to align the text on the button. I am creating button like below. Please let me know how can I align button text.
Thank you
I created a button using java script, I want to align the text on the button. I am creating button like below. Please let me know how can I align button text.
Thank you
var buttonnode= document.createElement('input');
buttonnode.setAttribute('type','button');
buttonnode.setAttribute('name',i+1);
buttonnode.setAttribute('value',values[1]);
buttonnode.setAttribute('id',values[0]);
buttonnode.style.cssText="font-size :'10';height: 30px;vertical-align: middle;width=95%";
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you..there was some spaces..I removed them
Glad you got it!
ASKER
Thank you
Capture.PNG