PDA

View Full Version : Help with <input type="text" question


davy19
7-2-04, 04:41 PM
I cannot figure out how to make the background color of the input text white instead of yellow for name/phone/cell/email

I would prefer they all same color?

Thanks

here is my line of code:

Name:<br> <input type="text" name="Name" size="40">

It comes up with yellow background in the textarea..want to make that white if possible.

B&T
7-2-04, 05:47 PM
Put

style="background-color: white;"

in the <input> tag.

davy19
7-2-04, 08:54 PM
Hmm odd it worked when using frontpage on my local machine..but once open in IE outside it doenst work still

here is the page:

http://www.nnjpr.org/application.htm

B&T
7-2-04, 10:09 PM
Looks white to me using IE.

davy19
7-3-04, 12:59 AM
really hmm..


that is strange...on 2 pc here at home i see yellow on name/phone/cell/email

everything else is white

i am using IE 6

(jj)
7-3-04, 05:08 AM
Using IE 4, IE 5, IE 6 and Mozilla FireFox, the boxes are all white.

mjp
7-3-04, 02:26 PM
Put

style="background-color: white;"

in the <input> tag.Or rather than adding it to every tag you can control *all* form elements with a couple of lines in the head of your file:

<STYLE TYPE="text/css">
<!--
input { background: #FFFFFF; }
textarea { background: #FFFFFF; }
-->
</STYLE>

B&T
7-3-04, 03:16 PM
Or rather than adding it to every tag you can control *all* form elements with a couple of lines in the head of your file:

<STYLE TYPE="text/css">
<!--
input { background: #FFFFFF; }
textarea { background: #FFFFFF; }
-->
</STYLE>
Well, very true, but then as long as we are giving CSS tips we might as well also suggest going to an external style sheet so you do not have to put it in every page.

P_O_D_U_N_K
7-22-04, 12:41 AM
Google toolbar strikes again :D

B&T
7-22-04, 12:59 AM
Google toolbar strikes again :D
The forum search works too ;)