[UPHPU] IE draws inputs yellow?
Jon Jensen
jjensen at debonairesolutions.com
Thu Feb 19 09:15:49 MST 2004
This is something I've addressed on my site. There are several workarounds,
the simplest being to make a style declaration !important:
input.whatver{
background-color: #ffffff !important;
}
The other (better IMHO) is to use JavaScript. Yes that's right. I said
JavaScript. Here's why:
The solution above is great for letting you specify your own colors, but it
thwarts AutoFill users. They won't necessarily know they can use it on your
site, since there is no visual indication. Using just a few lines of
JavaScript, you can do a myriad of things, such as having a note only
AutoFill users can see, as well as making the AutoFill fields a different
color from the rest (e.g. you can make them light blue while the normal ones
are gray, if that suits your aesthetic needs). The CSS solution doesn't
allow for either of those user-friendly possibilities.
http://jenseng.com/archives/000013.html
http://code.jenseng.com/google/
The JS is simple and low-impact - its only run by IE, and even if other
browsers *did* run it, it would still be harmless.
Jon
More information about the UPHPU
mailing list