Textbox colour
Moderator: General Moderators
Textbox colour
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.
-
TheBentinel.com
- Forum Contributor
- Posts: 282
- Joined: Wed Mar 10, 2004 1:52 pm
- Location: Columbus, Ohio
Re: Textbox colour
Have you tried using a style with it? Something like: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.
<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.
- johnperkins21
- Forum Contributor
- Posts: 140
- Joined: Mon Oct 27, 2003 4:57 pm
You can assign lots of CSS to it, here's an exmaple from my site:
(taken from http://mgs3.starbase.se)
Code: Select all
input, select, textarea {
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;
}Code: Select all
<textarea>text</textarea>