Topics:
» ASP
» HTML
» Stylesheets
» JavaScript
» PHP
» Flash
» More...

Site:
» Forum
» About

Highlighting Text

You can use CSS to add a background color to your text. Take a look at this text:

Hi, my name is Raphael

And heres the code for it:

<span style="background-color: orange">Hi, my name is Raphael</span>

If you only want certain parts of the text to be highlighted. Such as this, you just need to use the span tag:

<span style="background-color: #0099FF">Hi, my name is Raphael</span>

You can also use the highlight to add CSS rollovers, so you could have it when the mouse rollovers over, a yellow highlight appears. See the defining text page for more information.