Use hex values, not words, for CSS colors.

I’m helping a local semiconductor conference get their web site in order, and get an email that something’s not working right in IE on Windows. I can’t get it to recognize “background-color: grey;” a rule which works on Safari and Mozilla. Then I think ‘spelling!’ and change the rule to “background-color: gray;” and it works on IE.

The upshot: use hex values, not words, for colors.

There are many grays to choose from. Go see More Crayons’ list.

Possibly Related posts (machine generated):

  1. Automatic Zebra Tables
  2. A Week in Firefox
  3. The Safety Palette Color Picker
  4. moreCrayons
  5. Minesweeper in XSLT

More like this: .