...

View Full Version : Colour behind text?



ole90
06-06-2007, 05:02 PM
Hey guys, is there anyway to make a colour behind text? Like:

http://img517.imageshack.us/img517/2835/picture133md6.jpg

ahallicks
06-06-2007, 05:10 PM
background-color: orange;

You'll need to wrap that piece of text in some tag, such as <span>... give that span a class, such as .orange and then it should look like this:

CSS:

.orange {
background-color: orange;
}

HTML:

<span class="orange">highlighted</span>

ole90
06-06-2007, 05:27 PM
Hmm, i really need it in HTML though, sure there isn't a way for it in HTML?

ahallicks
06-06-2007, 05:39 PM
<span style="background-color: orange">highlighted</span>

ole90
06-06-2007, 05:43 PM
thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum