Textarea background

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
packito
Forum Newbie
Posts: 20
Joined: Mon May 19, 2003 1:53 pm

Textarea background

Post by packito »

Hey everybody!

How can i change the background of a textarea? Does it have to be always white :?:
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Apply a CSS style. You might want to define a class in a stylesheet so you can apply the same styles to all the forms in the program.
User avatar
wmasterj
Forum Commoner
Posts: 40
Joined: Mon Aug 18, 2003 5:52 pm
Location: Stockholm, Sweden

Post by wmasterj »

If you'r a bit rusty with CSS style sheets ->
there's a very detailed tutorial at webmonkey, you can also just skip to the good stuff:

http://hotwired.lycos.com/webmonkey/aut ... rial1.html
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Code: Select all

<textarea name="text" style="background: #dfdfdf; border: 1px solid #000000">Default Text</textarea>
packito
Forum Newbie
Posts: 20
Joined: Mon May 19, 2003 1:53 pm

thanks!

Post by packito »

Muchas gracias, JAM, problem solved!

Once again, thanks for the help of everyboy!
Post Reply