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].
For more options, visit https://groups.google.com/d/optout.