Learn HTML step-by-step from A to Z or improve your professional skills.  Home HTML and CSS Tutorials Get Rid of Yellow Form Fields Once and For All

Get Rid of Yellow Form Fields Once and For All


Have you ever created a website form and wondered why when you go to the form on the website that certain fields have a yellow background in the form field?

This is the Google toolbar that turns these fields yellow. On the toolbar there is an "auto fill" option. This tells the user that they can use this option to auto fill certain fields on your form (which are marked in yellow).

The Problem

In CSS if you declare a background color of your form fields this will typically change the background color for all the fields except the fields that are marked by Google for auto fill.

For example, CSS code that looks like:

input {
background: #F3F4EC;
}

Results in a form that looks like:

image 1

Not only are some of the fields an ugly yellow color, but the coloring is also misleading to users. Most web users are unaware of the yellow, "auto fill" option and instead assume that yellow indicates a required field. In the case of the form above, the Phone field is yellow even though it's not a required field.

As you can probably guess, these yellow fields are bad news:

Confusing Forms = A Drop in Conversions

The Fix

To override the yellow background all you have to do is declare your background as important.

Change the CSS to:

input {
background: #F3F4EC !important;
}

Then the form looks like this:

Get Rid of Yellow Form Fields Once and For All

Problem solved. The yellow fields are gone and the form is much more user-friendly.



Author's URL: Agency Tool
Learn HTML step-by-step from A to Z or improve your professional skills. More Tutorials: Featured Materials | Fresh Materials | More HTML Tutorials at Markuptutorials.com

Reader's comments
comments home loans September 22, 2011 says:
Following my monitoring, billions of people in the world receive the credit loans at different banks. Hence, there is a good possibility to find a secured loan in every country.
Reply
comments GertrudeCarey32 June 29, 2011 says:
If you are in a not good position and have got no money to get out from that, you would need to receive the <a href=" loans</a>. Just because that will aid you unquestionably. I get credit loan every year and feel good because of that.
Reply
comments KennedyMiriam June 18, 2011 says:
It is understandable that money makes people free. But how to act when somebody doesn't have cash? The one way only is to try to get the <a href="> and car loan.
Reply
comments me December 10, 2010 says:
i hate the google toolbar...causes way too many issues.
Reply
Add comments to "Get Rid of Yellow Form Fields Once and For All"

Captcha