Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
New Developer
scwebdev
Posts: 7
Registered: 11-23-2009

Text on button with fixed width won't center on 8830

[ Edited ]

I have tested a web page I created on both an 8830 (OS v4.5) and an 8703e (OS v4.1).   The html looks like this:

 

<table>

  <tr><td><input type="button" text="MDS" style="width:90px;" /></td></tr>

  <tr><td><input type="button" text="Demographics" style="width:90px;" /></td></tr>

</table>

 

On both devices' browsers (Blackberry browser in Blackberry emulation mode) the buttons display the same size but on the 8703e the text is centered while on the 8830 the text is left aligned (*both* Page and Column View)?!   I tried adding style="width:90px;text-align:center;" but that is not supported.  The only way I could make the button text "appear" to be centered is by padding the text value with spaces, but as soon as you change the font size it throws off the centered appearance. 

 

Any ideas?

Please use plain text.