Thursday, September 15, 2011

web2py: Input field alignment for decimal and integer

By default, all the fileds are aligned to left.


If you want to align to right such decimal and integer, you can simply add the following to your base.css.

input.decimal, input.integer, input.double { 
    text-align: right; 

Then it will be like this,


You can also use "Tight input widget" developed by Kenji san at S-Cubism.

Tight input widget

No comments:

Post a Comment