SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    hightlighted text

    hey guys.. is there any code in HTML or PHP that can make a text appear highligted?

    Thanks...

  2. #2
    Victory shall be mine tubedogg's Avatar
    Join Date
    Mar 2001
    Location
    Medina, OH
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not quite sure what you mean by highlight...are you referring to text with a different color background than the rest of the page? Or do you mean like the [php] coloring system in vB (like this:
    PHP Code:
    function functionname ($variable1,$variable2="") {
        
    $i 0;
        while (
    $i 5) {
              
    //do something
              
    $i++;
        }

    If you mean the first, you can do it with CSS like this:
    <span style="background-color: #000000; color: #FFFFFF;">Highlighted Text</span>
    The second uses the PHP function highlight_string.
    Kevin

  3. #3
    SitePoint Addict
    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks tubedogg.. the spanstyle is EXACTLY what i need...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •