PDA

View Full Version : Alignment



fabiomarcos
Jun 27, 2008, 5:29 PM
Hi !

How we can set the text align inside a NumberField to right ?
Thank's !

mindcore1
Jun 30, 2008, 3:44 PM
I may be wrong, but I thought the default text alignment for the NumberField control was to the right. Are you sure you don't have any additional CSS that's causing your problem? Looking at the code the default CSS class is "x-form-text x-form-field x-form-num-field".

Either way, I would recommend adding custom CSS and providing the control with the CSS (could use the AddClass method). This way you don't inadvertantly modify the styles of other controls. I haven't test this though, but let me know if it works or if you figure out a better way as I'm sure there is one.