Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
245
The Color Unit (CSS Reference)
Introduction
The Color Unit can be used to define a color. You can either
use the color name like red, blue, yellow etc. or a numeric rgb value. If you
use the rgb option then you have again four options. The following table shows
it.
Values
Name:
Description:
#rgb (e.g.,
#0c0)
This option is used to define the color in three hex
decimal characters.
#rrggbb (e.g.,
#00cc00)
This option is used to define the color in 6 hex decimal
characters.
rgb(X,X,X)
This option is used to define the color with a value
between 0-255.
rgb(Y%,Y%,Y%)
This option is used to define the color with a value
between 0.0% and 100.0%.
Example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN"