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!

Controlling color of text fields in css

Status
Not open for further replies.

multichild

Programmer
Jan 28, 2006
76
GB

I have managed to get control of certain text fields as shown in the link above, but I cant work out why is it that the others revert back to the IE standard colour.

#Contact{
background-color: #666699;
color: #666699
}

Email: <br/>
<input id="Contact" name="email" type="text" />

cheers

Lee
 
You will always have problems getting form elements to look consistent across all browser/platforms. This is well documented and the result of different browser manufacturers applying different decisions to the recommendations from the w3c - and the different ways operating systems draw these form elements.

Having said that, your page looks the same in IE6 and FF for windows. Maybe you have some "google bar" or "yahoo bar" installed... the side effect of this is that is remembers field names you have used before... colours them... and allows auto-completion of form elements once you start typing. Often these toolbars colour the form elements (yellowish) - and there is nothing you can do in CSS to fix it.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
I am looking at the site in IE, and from the css below:

#Contact{
background-color: #F7F4F6;
color: #000
}

Im seeing that name, telephone, email are yellow, and company name and message are the bacground colours i wont with black text

cheers

Lee
 
Baby Jeffy, you are exactly right thank you.

I had a google tool bar installed, I turned it off and hey presto it all worked out how i wanted.

What a shame that is, but thats the way it is at the mo isnt it.

Thanks again

lee

Learn something new every day
 
From my thread...

BabyJeffy said:
... Maybe you have some "google bar" or "yahoo bar" installed... the side effect of this is that is remembers field names you have used before... colours them... and allows auto-completion of form elements once you start typing. Often these toolbars colour the form elements (yellowish) - and there is nothing you can do in CSS to fix it.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
It's a shame really... those tool bars can be really handy... but why why why did they have to go and interfere with the UI like that *sigh*

Well, it's good that you know the cause of the problem. For those without the toolbar installed, they will see your site fine [smile]

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top