Erik wrote:
> 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
|
|