1. Computing & Technology

Discuss in my forum

Why Don't my CSS Colour Styles Work?

By , About.com Guide

Question: Why Don't my CSS Colour Styles Work?
If you speak a variant of British English that has spellings like favourite and colour, you may come into trouble when writing CSS.
Answer:

CSS is written with US English spellings. So if you are writing colour:red; in your style sheets, none of your text will change color.

Make sure that when you write CSS color styles you use the US English spelling for them:

color
 background-color
 border-color
 outline-color

©2012 About.com. All rights reserved.

A part of The New York Times Company.