Any issues with using jQuery?
In your controller:
INPUT(_name='left', requires=[IS_NOT_EMPTY(), IS_HEXSTR()], _id=
'activation_left'),

And in your view:
<script>jQuery('#activation_left').width(50);</script>


You could also attempt to solve the root problem (css) by adding your own 
custom css that takes precedence over the included styles:

In your custom.css:
input.activation { width:50px; }
and then in your controller:
INPUT(_name='left', requires=[IS_NOT_EMPTY(), IS_HEXSTR()], _class=
'activation'),



On Friday, January 16, 2015 at 3:06:57 PM UTC-5, Dave S wrote:
>
>
>
> On Friday, January 16, 2015 at 12:03:56 PM UTC-8, Dave S wrote:
>>
>> As mentioned in my other thread,
>> <URL:https://groups.google.com/d/msg/web2py/w1x7_uDGfJc/Ix2x8tO1qLwJ>
>>
>> I have a form with four inputs, which get pasted together to make the 
>> "actual input".
>>
>> Bootstrap is overriding my wishes to control the input size, making the 
>> fields much to big (each should be 4 characters).  It is using it's idea of 
>> what input[type="text"] should look like, which coming out to 314 pixels.
>>
>>
> Note that if I change the type to input["number'] (with a *_type = 
> "number"*  in the controller) I get a smaller-but-still-too-big box, and 
> can't input hex digits A-F.
>
> /dps
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to