Hi! I’m new here, and maybe this has been asked before, but I could not find it by searching.
I have composed web pages with forms using fields like:
<input name=”name” type=”text” class=”text” size=”20″ maxlength=”20″>
<input name=”phone” type=”text” class=”text” size=”20″ maxlength=”20″>
<input name=”email” type=”text” class=”text” size=”60″ maxlength=”60″>
etc.
When I view the page in IE (version 6.0.2900) SOME of the input fields have a yellow background – but OTHERS just have a plain white background.
This baffles me, since the markup is the same for all of them.
In the HTML source code, these <input> fields are listed one after the other with nothing in between them: that is, all of these fields are sourced exactly the same.
This effect is not random, because the same elements come up with a yellow/respectively white/ background every time I view that particular page.
A minor edit to the source (like changing the “size” value of an <input> field) sometimes changes the result on rendering – usually the yellow disappears and a text input background “mysteriously” washes out to white.
In Netscape, the backgrounds are all just white.
The problem is, having some of them yellow, and others white, looks funny and it seems like there is something wrong with the page – but the form works fine and everything else is normal…
Can anyone shed any light on this weirdness? Thanks.