View Full Version : Textarea help


whatever_la
02-12-2003, 08:37 AM
How can I control the size of the text area?

<textarea>TEXT TEXT TEXT</textarea>

Also, can I changed the background of the text area to another color?

Aina
02-12-2003, 12:59 PM
Here's the code if you want to change the size:

<textarea rows=# cols=#>
TEXT GOES HERE
</textarea>

And if you want to change it to another color, you can use this code:

<ilayer name="scroll1">
<div id="scroll3"
style="width:100;height:75;
background-color:COLORHERE;
overflow:auto">
TEXT HTML TEXT HTML
</textarea></div>

Alcy
02-12-2003, 08:45 PM
Originally posted by Aina

<ilayer name="scroll1">
<div id="scroll3"
style="width:100;height:75;
background-color:COLORHERE;
overflow:auto">
TEXT HTML TEXT HTML
</textarea></div>

^ that's a div, not a textarea :)

<textarea style="background-color:COLOUR; width:#px; height:#px;">

TEXT TEXT TEXT

</textarea>

whatever_la
02-14-2003, 11:50 AM
Thanks, I want to know that whether I can change the color for the email form's boxes too if it's not too much trouble. THANKS ^~^ :)

Alcy
02-14-2003, 08:43 PM
Sure you can :D. Just put this between your head tags.

<style type="text/css">

input, textarea
{
background-color:COLOUR;
}

</style>

That'll change it for your entire page.