Only one thing to be careful of. I believe...If someone use the default 
scaffolding css and create the form its responsive by default. Means, you 
open the browser and roll back and see the form shrinks with you. Which is 
pretty good in a sense that no one needs to have a tablet version or 
mobile. But with an external css/js, that feature may be lost unless its 
part of the bootstrap.



On Tuesday, January 19, 2016 at 11:00:10 AM UTC-5, Richard wrote:
>
> And why not :
>
> <style>
> textarea {
>     width: 1320px;
>     height: 70px;
> }
> </style>
>
> You don't need js for that...
>
> Also consider make your textarea elastic there is js plugins for that...
>
> :)
>
> Richard
>
> On Tue, Jan 19, 2016 at 10:38 AM, Ron Chatterjee <[email protected] 
> <javascript:>> wrote:
>
>> Add this to your view:
>>
>> <script>$('textarea').css('width','1320px').css('height','70px');</script>
>>
>> Should change the size.
>>
>> On Thursday, May 17, 2012 at 5:59:11 PM UTC-4, Pystar wrote:
>>>
>>> I would suggest you using custom forms in your view and targeting the 
>>> attribute you wish to change with CSS. I find that approach more flexible.
>>>
>>> In the view:
>>>
>>> {{=form.custom.begin}}
>>> ###you can include normal HTML here to build up the form elements and 
>>> target it with CSS
>>> or
>>> <textarea id=#, class=# rows=20, cols=30></textarea>
>>> {{=form.custom.end}}
>>>
>>> hope that helps?
>>>
>>> On Wednesday, May 16, 2012 4:59:14 PM UTC+1, Marco Prosperi wrote:
>>>>
>>>>
>>>> hello, how can I change the default size of a 'text' field in a form? 
>>>> (at first appearance, not dragging the corner)
>>>>
>>>> thanks
>>>>
>>>> Marco
>>>>
>>> -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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