Building BobSmithPhotography.net has stopped expanding because I've been overwhelmed with spam on the comment forums. So, if you're here and have questions about web design come and visit Forums, Blogs, Wikis dot com. It has articles that I've written, some of which are also here, and a web design forum as well so you can ask any questions you may have. There is still a lot of good stuff here though, so poke around the links and take a look.

Home » CSS Properties » color

color

The color property allows you to set the foreground color for an item.   You can use either a color name (red, black, green), a rgb code (rgb(255,255,255)), or a hex number (#ffffff).

The 3 following examples will all cause text within the paragraph to be red.  Notice that all 3 use different techniques to define red.

p {
color: red;
}

p {
color: rgb(255,0,0);
}

p {
color: #ff0000;
}

Content managed by the Etomite Content Management System.