How do you make highlighted text with a line through it?

Discussion in 'HTML & Website Design' started by Davey Crocket, Feb 28, 2006.

  1. #1
    Whats the HTML do you use to make highlighted text with a line through it? so if I had a price of 47.00 it would be highlighted and crossed out?
     
    Davey Crocket, Feb 28, 2006 IP
  2. MKInfo

    MKInfo DP Guard Dog

    Messages:
    1,481
    Likes Received:
    97
    Best Answers:
    0
    Trophy Points:
    140
    #2
    MKInfo, Feb 28, 2006 IP
  3. dfsweb

    dfsweb Active Member

    Messages:
    1,587
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    88
    #3
    Hi there,
    Just use the following HTML code:
    <s>$47.90</s>
    (The "s" stands for "strikethrough") :)
    dfsweb
     
    dfsweb, Feb 28, 2006 IP
  4. Blame Me

    Blame Me Guest

    Messages:
    162
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You could use css to do this:

    css bit:

    span.linethro{
    text-decoration: line-through;
    }

    html code in file bit:

    <p>so if I had a price of <span class="linethro">47.00</span> it would be highlighted and crossed out?</p>

    No with the css span tag you can make the text bigger, a different color, differnet font, placed in a box........ and on..... and on.....

    Its up to you.
     
    Blame Me, Feb 28, 2006 IP