www.webdeveloper.com
Results 1 to 2 of 2

Thread: How did CNN do this on their site?

  1. #1
    Join Date
    Jan 2003
    Posts
    14

    How did CNN do this on their site?

    There is an effect that happens on the cnn.com site that, for
    some reason, I cannot figure out how to duplicate. Now doubt it's very basic, but please bear with me.

    If you go to their site, you will notice that every text link rolls over between underlined and not underlined. Is this a CSS thing or basic HTML thing that I'm missing? How is it done?

    Thanks in advance.

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    It is CSS, and here it is...

    Code:
    <style type="text/css">
    A:link, A:active, A:visited {
    color:darkblue;
    text-decoration:underline;
    }
    A:hover {
    color:darkred;
    text-decoration:none;
    }
    </style>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles