Pages

Friday, March 15, 2013

Text Color

The color property is used to set the color of the text.

With CSS, a color is most often specified by:
  • a HEX value - like "#ff0000"
  • an RGB value - like "rgb(255,0,0)"
  • a color name - like "red"
Look at CSS Color Values for a complete list of possible color values.
The default color for a page is defined in the body selector.

body {color:blue;}
h1 {color:#00ff00;}
h2 {color:rgb(255,0,0);}


0 comments:

Post a Comment