View Full Version : Highlight Text Question


Tad
04-13-2003, 04:15 PM
Does anyone know the <font></font> code for making highlight text? Here's an example of what I'm looking for:

Flip Text Example
<font style='width=80%; filter:flipV'>test</font>

I know I could do it this way:
<span style="background-color:yellow;">yellow
highlighted text</span>

but I really need it to be in a <font></font> format to suit a certain area in my site. Can anyone please help me?

MaGiCSuN
04-13-2003, 04:24 PM
<style type="text/css">
<!--
.HL {background: #ffff00;
color: #000000;}
-->
</style>

add above code between your <head> and </head>

<font class="HL">this is highlighted</font>

this will be the code for your highlighted text. In this way not all the text wil be highlighted, only the ones with "class="HL"" in it

Love,
Mirna

pb&j
04-14-2003, 05:57 AM
just to ask...

why use the font tag at all considering css (and span and div) is able to do the same job and better? the font tag is slowly going out the door.

not really wanting an answer on this, just something to think about...

;)