Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2005
    Posts
    63
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Change font color...

    I suspect the answer to my question is something very simple but I can't find it:

    How do I change the color of one or two words in a string of text that's within <h2> or <p> tags?

    Thanks.

    mccd

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,622
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    Code:
    <h2>Lorem <span>ipsum</span></h2>
    
    
    h2 {color: green;}
    h2 span {color: red;}

  • #3
    New Coder
    Join Date
    Dec 2005
    Posts
    63
    Thanks
    2
    Thanked 0 Times in 0 Posts
    See? I knew it would be simple. Thank you very much.

    mccd


  •  

    Posting Permissions

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