SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,209
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    red strike line and black text

    Code:
    <strike>I am a boy</strike>


    I like to make the strike line in red, and the text "I am a boy" in black.

    Can I do it with your help?

  2. #2
    SitePoint Guru
    Join Date
    Jun 2004
    Location
    Finland
    Posts
    703
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTML Code:
    <span style="color: red; text-decoration: line-through"><span style="color: black">text</span></span>
    Wrong forum btw. This is a pure CSS question.

  3. #3
    d^_^b Iain G's Avatar
    Join Date
    Nov 2005
    Location
    Gloucester, UK
    Posts
    262
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use the <del> tag:
    Code:
    CSS
    
    del {
    	color: #f00;
    }
    
    del span {
    	color: #000;
    }
    
    HTML
    
    <del><span>Red strike-through</span></del>
    Coding and design philosophy:
    Keep It Simple, Stoopid


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
  •