Please try with:

table#t1 input{width:auto;}


Il giorno martedì 25 febbraio 2014 18:45:31 UTC+1, Dominique ha scritto:
>
> Unfortunately, no ...
>
> Le mardi 25 février 2014 18:29:38 UTC+1, Massimo Di Pierro a écrit :
>>
>> I think the problem may be the size of the INPUT. Try add this in style
>>
>> input { width: 50px; } 
>>
>>  
>>
>> On Tuesday, 25 February 2014 10:49:07 UTC-6, Dominique wrote:
>>>
>>> Hello Massino,
>>>
>>> Thank you so much for spending some of your time for me. I appreciate.
>>>
>>> The following codes will show you my problem:
>>> In the controller:
>>>
>>>> def form_test():
>>>>     form = FORM(TABLE(TR(FIELDSET('This is a test for Field 1:  ', 
>>>> INPUT(_name='f1', id='f1')),
>>>>                          FIELDSET('This is a test for Field 2:  ', 
>>>> INPUT(_name='f2', id='f2')),
>>>>                          FIELDSET('This is a test for Field 3:  ', 
>>>> INPUT(_name='f3', id='f3')),
>>>>                          FIELDSET('This is a test for Field 4:  ', 
>>>> INPUT(_name='f4', id='f4')),
>>>>                          FIELDSET('This is a test for Field 3:  ', 
>>>> INPUT(_name='f5', id='f5'))
>>>>                          ), _id='t1'))
>>>>     return dict(form=form)
>>>>
>>>
>>> In the view:
>>>
>>>> {{extend 'layout.html'}}
>>>> <style type="text/css">
>>>>     table  {  font-size: 12px; max-width:80%}
>>>>     td    {font-weight:bold;vertical-align:top;}
>>>>     fieldset {width:25%; border: groove}
>>>> </style>
>>>> {{=form}}
>>>>
>>>> What I get and what I want are shown in the attached images: I want all 
>>> the fields to appear on screen without scrollbars.
>>> Note that the image "what I want" is just the code (form + css script) 
>>> copied in notepad and opened in firefox. 
>>>
>>> The table css properties I add in my script seem not to be taken into 
>>> account in web2py.
>>> The point is that I don't know which web2py file I need to modify (and 
>>> where).
>>>
>>> I hope it's clearer ;)
>>>
>>> Thank you for your help
>>> Dominique
>>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to