internet explorer backcolor

E

Erik

Hello,

When I use the input tag in a form in IE6 the backgroundcolor changes to
yellow when I use the name txtPostcode.

So this form gives me a textbox with yellow background:

<form action="thankyou.php" method="post">
<input type="text" name="txtPostcode" />
</form>

And this form gives me a textbox with white backround:

<form action="thankyou.php" method="post">
<input type="text" name="txtPostcod" />
</form>

I've only removed the 'e' from txtPostcode. I've no other code nor links
to stylesheets in the file to test this behaviour.

Does anyone understand this behaviour? Is it an IE6 feature to render
input on the basis of tagnames (I found the same behaviour using the
name txtEmail) and is there a possibility to influence it? (When I put
in a style with background: green; It is overridden and the background
color still becomes yellow.

Erik
 
R

Roy Schestowitz

Erik said:
Hello,

When I use the input tag in a form in IE6 the backgroundcolor changes to
yellow when I use the name txtPostcode.

So this form gives me a textbox with yellow background:

<form action="thankyou.php" method="post">
<input type="text" name="txtPostcode" />
</form>

And this form gives me a textbox with white backround:

<form action="thankyou.php" method="post">
<input type="text" name="txtPostcod" />
</form>

I've only removed the 'e' from txtPostcode. I've no other code nor links
to stylesheets in the file to test this behaviour.

Does anyone understand this behaviour? Is it an IE6 feature to render
input on the basis of tagnames (I found the same behaviour using the
name txtEmail) and is there a possibility to influence it? (When I put
in a style with background: green; It is overridden and the background
color still becomes yellow.

I too have had difficulties adjusting forms behaviour to fit IE. I believe
what's happening is that one of the names above is invalid so the default
background colour is used as a substitute.

I have a related problem which I hope somebody can comment on. In my
homepage (http://schestowitz.com/) there is a search box at the top. The
button called "Search" is rendered at a reasonable scale under Firebox, but
it tends to grow significantly in height under IE and it looks
out-of-place. How can I force IE to render objects properly? I have had
many goes at it without any success.

Roy
 
S

Steve Pugh

Erik said:
When I use the input tag in a form in IE6 the backgroundcolor changes to
yellow when I use the name txtPostcode.

You have the Google toolbar installed.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top