Sub-menu

 

>> CSS > Text Background Colors

Text Background Colors

Again, code in it's simplest form but prewritten for you.

These are merely some examples that can be used on various page & text colors. Changing the CSS to your own colors is simple.

How it looks:

gold
cornsilk
silver
greenyellow
sulu
lavender
white
purple
black
yellow

The CSS used:

.backgold{color:inherit;background:#ffd700;}
.backcornsilk{color:inherit;background:#fff8dc;}
.backsilver{color:inherit;background:#c0c0c0;}
.backgreenyellow{color:inherit;background:#adff2f;}
.backsulu{color:inherit;background:#e4f9bf;}
.backlavender{color:inherit;background:#e6e6fa;}
.backyellow{color:inherit;background:#ffff00;}
.backpurple{color:inherit;background:#993399;}
.backblack{color:inherit;background:#000000;}
.backwhite{color:inherit;background:#ffffff;}

Capture this CSS as a seperate file: text_bg_color.css

 

Please refer to What Is CSS? to see how to use this code.

And # Colors if you want to choose your own Hex Values.

Top of Page