Thursday, January 3, 2008

Specifying colors using RGB functional notation

You might know that in HTML/CSS, you can specify colors using hexadecimal values or the color name.

Well, there is another way of specifying colors that many web developers are completely unaware of.

In addition to using the hexadecimal notation or the color name, you can also use the RGB functional notation. The RGB notation represents the different amounts of red, green and blue that make up the final color. Actually, the hexadecimal notation also represents an RGB value. It's just expressed using hexadecimal instead of decimal.

So, to see how you can use RGB notation in your CSS code, check out Quackit's CSS color property page.

No comments: