Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms - Colored 2

Status
Not open for further replies.

JennyW

Technical User
Mar 1, 2001
323
CA
Hiee,

Is there a way to color forms?
You know how the backgrounds of forms are white? I’ve seen a few forms where the background colors are black.
I know it’s only an IE thing because I checked it in Netscape and the normal forms appeared.

Does anybody know anything about this?
If ya do, please help!

Thanks,
Jenny
 
Hi Jenny,

You need to use CSS (Cascading Style Sheets) to define the color, here is an example (the gray background with white text):

<input type=&quot;text&quot;
style=&quot;background-color: #808080; color: #000000;&quot;>

you can also do that to the <textarea> and <select> tag.

(P.S.) Lastest Netscape 6.x will also support this.


hope this helps


Chiu Chan
cchan@emagine-solutions.com
 
Jenny,

The simplest way to do it is to enclose the form in a table and assign a background color for the table. Mise Le Meas,

Mighty :)
 
Hi,
Thanks for the reply's.

So I'd enter this text when writing my Forms?

<input type=&quot;text&quot;
style=&quot;background-color: #808080; color: #000000;&quot;>

(Obviously I'd adjust the color as need be).

Mighty,
I kinda understand what you're saying, but my site is currently in Layers.

Jenny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top