January 23, 2004
Google Toolbar Part III
Whenever I forget to tell myself to KISS, I can always count on others to help me out ;)
He pointed out that if you use an "!important" declaration, you can ensure that your form fields keep the background color specified. Well, I feel kind of silly. Given that AutoFill applies the yellow by modifying the style property of an element, it goes without saying that stylesheet declarations denoted as !important would take precedence. I guess I just overlooked the obvious.
- Instead of unstyling all AutoFill elements, you style them to your liking but visibly different from other elements.
- Create a note that only AutoFill users can see that explains that AutoFill can be used on this form.
The advantages are threefold:
- You maintain control over your design—no unsightly form fields.
- You don't thwart your users—those that enjoy the functionality of AutoFill.
- The note educates those users who otherwise wouldn't know what AutoFill does.