Tricky Tricks ›› Programming Tricks ›› CSS Tricks ›› Background Color Behind Text

Background Color Behind Text

CSS Tricks

Background Color Behind Text:

An example of background color behind text.

This CSS Stuff Is Amazing !!

Here is the CSS code for a background color behind some bold text.

<font style="background-color: #e6e6fa; color: #9400d3; font-size: 14pt; font-weight: bold;">
Put Some Text Here
</font>

Or you can use the style codes in your <b> tags.

Very Cool !

<B style="background-color: #ff0000; color: #ffff00; font-size: 18pt; font-weight: bold;">Text Here</b>

Partners