Page 1 of 1

Textbox colour

Posted: Thu Mar 25, 2004 3:07 am
by S_henry
Can we assign the colour for textbox? Actually I want to make the same colour for the textbox and the form screen. For example, if my form screen colour is red, I want the textbox colour also red.

Re: Textbox colour

Posted: Thu Mar 25, 2004 1:21 pm
by TheBentinel.com
S_henry wrote:Can we assign the colour for textbox? Actually I want to make the same colour for the textbox and the form screen. For example, if my form screen colour is red, I want the textbox colour also red.
Have you tried using a style with it? Something like:

<textarea rows=5 cols=20 style="color: red"></textarea>

Maybe back-color or background-color? Try looking up a CSS reference for the right name, but there's almost surely something out there for it.

Posted: Thu Mar 25, 2004 1:32 pm
by johnperkins21
<textarea rows=5 cols=20 style="background-color:#ffffff"></textarea>

Posted: Thu Mar 25, 2004 3:01 pm
by vigge89
You can assign lots of CSS to it, here's an exmaple from my site:

Code: Select all

input, select, textarea &#123;
	background-color: #CDC;
	font-family: Verdana, Tahoma; font-size: 9px; color: #000; font-weight: normal;
	border-style: solid; border-width: 1px; border-color: #000; padding: 1px;
&#125;

Code: Select all

<textarea>text</textarea>
(taken from http://mgs3.starbase.se)

Posted: Thu Mar 25, 2004 9:29 pm
by S_henry
Great. Problem solved. Thank you guys.. :wink: