Results 1 to 3 of 3

Thread: 2 different colors within the same link?

  1. #1
    Join Date
    Jan 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default 2 different colors within the same link?

    Is it possible to achieve this? like if I have a link with two words, and I only want the first word to be visible until you hover over the link, then both words are visible??

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Yes. Give this a try.
    Code:
    <a href"whatever.html">This will show up<span>This wont</span></a>
    css
    Code:
    a {
    visibility:visible;
    }
    a span {
    color:#ffffff;
    visibility:hidden;
    }
    a:hover span {
    visibility:visible;
    color:#ff0000;
    }
    You can use either option the visibility or the white font color.

  3. The Following User Says Thank You to bluewalrus For This Useful Post:

    laurentamale (01-03-2009)

  4. #3
    Join Date
    Jan 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Oh my gosh, thank you so much! I've been trying so many different variations of that code for the past couple of days, and your's actually works PERFECTLY! Thank you again!!!

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
  •