Colored Text
Twelve text colors pre-written for you. By including a declaration of no background color, the code will validate correctly through the W3C CSS Validator:
How it looks:
Black Text
Red Text
Blue Text
Green Text
Purple Text
Yellow Text
Orange Text
Gray Text
White Text
Brown Text
Dark Green Text
Dark Blue Text
The CSS used:
.black{color:#000000; background:none;}
.red{color:#ff0000; background:none;}
.blue{color:#0000ff; background:none;}
.green{color:#008000; background:none;}
.purple{color:#800080; background:none;}
.yellow{color:#ffff00; background:none;}
.orange{color:#ffa500; background:none;}
.gray{color:#808080; background:none;}
.white{color:#ffffff; background:none;}
.brown{color:#a52a2a; background:none;}
.darkblue{color:#333399; background:none;}
.darkgreen{color:#006400; background:none;}
Capture this CSS as a seperate file: colored_text.css
Please refer to What Is CSS? to see how to use this code.
And Hex Colors if you want to choose your own Hexadecimal Color Values.
