What are standard named colors used in CSS stylesheet?

by Viper 22. February 2009 20:07

When developing web pages, choice of colors is big part of skinning in style sheet files. A lot of time instead of using HEX values for RGB, we end up using named colors like blue, green etc. Some time we end up picking a color name that may not be standard and when page is viewed in a different browser, it looks completely different. CSS specification has defined 17 standard named colors. So when using named colors, if you pick one of the following there is more chance of your site looking the same across different browsers.

  • aqua
  • black
  • blue
  • fuchsia
  • gray
  • green
  • lime
  • maroon
  • navy
  • olive
  • orange
  • purple
  • red
  • silver
  • teal
  • white
  • yellow
Give your advice to big bosses and make money

Views: 1582

Tags: , ,

CSS | HTML

Powered by BlogEngine.NET 1.5.1.7
Theme by Naveen Kohli

By Categories