1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Highlighting

Discussion in 'Programming' started by danpadams, Jan 12, 2006.

  1. #1
    I am trying to figure out the method to hightlight some text on a webpage, I am going to do this via php but I need to remember the HTML. I am thinking it would be like <font bgcolor="#00DD00"> but when I tried that it just shows white text and a black background. Can anyone give a suggestion? Basically what I want to do is to just add background highlighting to some text that is present in the webpage.

    Thanks for any help possible.
     
    danpadams, Jan 12, 2006 IP
  2. dave487

    dave487 Peon

    Messages:
    701
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <div class="highlight">highlighted text</div>

    in your css file add
    .highlight{
    background-color:yellow;
    }
     
    dave487, Jan 13, 2006 IP
  3. Jean-Luc

    Jean-Luc Peon

    Messages:
    601
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I use this :
    <SPAN STYLE="background: yellow;">highlighted text</SPAN>
    Code (markup):
    Jean-Luc
     
    Jean-Luc, Jan 13, 2006 IP