View Full Version : Text background color!!


luckyyou72
11-17-2003, 01:50 AM
I was just wondering if there was an html code for changing the background color to a line of text. Not the color of the text but the space behind it. Thanks for any help!

pb&j
11-17-2003, 06:37 AM
try this...

<span style="background-color:#ff0000;"> text here </span>

Airjoe
11-17-2003, 09:23 PM
Or, more simply.

<font BGcolor=Whatever>

pb&j
11-18-2003, 04:36 AM
Originally posted by Airjoe
Or, more simply.

<font BGcolor=Whatever>
bgcolor is not a valid property of the font tag.

the font tag has size, color, and face for properties.

for coding standards, the css equivalent should be used instead of the font tag.