Get the latest news, exclusives, sport, celebrities, showbiz, politics, business and lifestyle from The VeryTime,Stay informed and read the latest news today from The VeryTime, the definitive source.

Why Don"t my CSS Colour Styles Work?

23
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:

colorbackground-colorborder-coloroutline-color
Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.