| CSS Color Codes are often a mystery to novice | | | | Blue: 0 = 00 |
| HTML/CSS developers. #FF0000 ... What might that | | | | Result: #FF0000 |
| mean? | | | | To make all these Color Codes work for you, you |
| CSS Color Codes are actually hexadecimal values of a | | | | must embedd them into your CSS statement like |
| specific color. If you've worked in Photoshop's color | | | | this:style="color:#FF0000;" |
| picker, you must have seen these codes. | | | | The alternative way is to specify a RGB value lake |
| The alternative to hexadecimal color codes are RGB | | | | this:style="color:rgb(255,0,0);"and the easiest way to |
| color codes. RGB stands for Red Green Blue. So if | | | | specify color using CSS is this:style="color:red;" |
| you want to specify a specific color, you'll set each | | | | The last example for setting the color by color name |
| color value separately, for example R:255 G:0 B:0. | | | | has some limitations though: There are only 16 colors |
| Bear in mind that the minimum value is 0, and | | | | that you can use: aqua, black, blue, fuchsia, gray, |
| maximum value is 255, so in this example we have | | | | green, lime, maroon, navy, olive, purple, red, silver, |
| specified red color. | | | | teal, white, and yellow. |
| Hexadecimal color values also function this way, so if | | | | And the final tip for hexadecimal CSS Color Codes is |
| you want to specify a color, you will combine RGB | | | | that you can abbreviate. Hexadecimal code can be |
| values converted into hexadecimal numbers like this: | | | | shortened if the pairs have same values. For instance, |
| Red: 255 = FF | | | | if you want to specify a red color, you'd write |
| Green: 0 = 00 | | | | #FF0000. |