Page 1 of 1
FormBuilder textarea too wide
Posted: Thu Apr 19, 2007 12:46 pm
by Ulysses
Spent more than an hour looking for where to change the default textarea cols and rows in FormMail to no avail.
Code: Select all
<textarea name="m4_10" cols="80" rows="15"></textarea>
I need to reduce the cols="80". Whre does this value come from?
Thanks
Re: FormBuilder textarea too wide
Posted: Thu Apr 19, 2007 1:15 pm
by cnymike
I'm probably the last person who should be giving suggestions, but maybe it's in the FormBuilder/classes/TextField.class.php file?
Re: FormBuilder textarea too wide
Posted: Thu Apr 19, 2007 1:30 pm
by Ulysses
Fraid not. There are two instances of "80" in TextField.class.php and neither makes a diffrence to the form. Thanks anyway.
Re: FormBuilder textarea too wide
Posted: Thu Apr 19, 2007 1:56 pm
by RonnyK
Ulysses,
the 80/15 comes by default as that is the way HTML handles it if no specific parameters are given.
In the following post did I post a way to change it:
http://forum.cmsmadesimple.org/index.ph ... l#msg52829
Ronny
Re: FormBuilder textarea too wide
Posted: Thu Apr 19, 2007 2:16 pm
by Ulysses
Thanks Ronny,
That's very handy. Which particular CSS file should I add it to?
Re: FormBuilder textarea too wide
Posted: Thu Apr 19, 2007 2:23 pm
by RonnyK
I just put the lines on the bottom of the main CSS, but you can also create one called "formbuilder" and attach that one to the templates where it is required. If a module has his own CSS, I'll edit it over there otherwise I add all additional styling in the main-css.
In fact, you can put it in whatever CSS you want, as long as it is attached to the template, as all attached CSS-es are being used.
Ronny