Click to See Complete Forum and Search --> : CSS with Forms


smercer
02-09-2005, 08:42 AM
Hi all,

I was just wondering if it is possible to set text box lengths with CSS?

Also can Textarea feild lengths/heights be done in CSS as well?

Edit: Here is my website http://www.macleaybec.com.au (which I am still designing), and I have forms on "Membership" and "Contact us". I have got the layout in table design and I was wondering if there was a better way of doing it.

Thanks in advance!!

Fang
02-09-2005, 08:53 AM
Yes, but the rows and cols attributes must also be used for validation
input {width:10em;}
textarea {width:10em; height:10em;}
.
.
<input type="text">
<textarea rows="10" cols="10">

The css will override the rows and cols attributes

smercer
02-09-2005, 08:56 AM
Thanks fang,

I was not sure if you could do it with forms. are there any elements that cannot be done with CSS?

Fang
02-09-2005, 09:10 AM
Can't think of any elements offhand

smercer
02-09-2005, 09:20 AM
thanks for helping