Geeks With Blogs
Stephanie Grima C#, ASP.NET and my life.


CSS : Color Property

The CSS Color property is there to set the color of the text written within this element, in other words it is the fore color.

The value in the color property can be:

·         A color name example: blue:
     color: blue
·         A hexadecimal number example: #FF0000:
     color: #FF0000
·         An RGB value example: (0,255,2):
     color: rgb(0,255,2)


Posted on Friday, November 7, 2008 7:36 PM HTML / CSS | Back to top

Comments on this post: Part 5: Color: Property [CSS]

# re: Part 5: Color: Property [CSS]
Requesting Gravatar...
You can also short-hand your Hex color. For instance if the red part of your hex if FF and you green is 00 and your blue is 00, you an short had it as #F00. The one benifit is that the colors representable by short-hand are usually web-safe colors.
Left by Lee Brandt on Nov 08, 2008 3:46 AM

Your comment:
 (will show your gravatar)

Copyright © Steffi | Powered by: