87 users online (0 members and 87 guests)  

Thread: HTML For Links


  Results 1 to 2 of 2

Related

  1. Replies: 1
  2. Replies: 0
  3. links to html pages do not work    Forum: HTML Forum
    Replies: 1
  4. HTML Links...    Forum: HTML Forum
    Replies: 4
  1. #1
    Unregistered
    Unregistered's Avatar
    Guest

    Exclamation HTML For Links

    To Whom It May Concern:

    Hello, this is Stephen Jones with Network Labs. I'm having trouble finding a certain HTML script that makes the links turn different colors when you place your cursor over the links.

    If you know what I'm talking about, please let me know by replying to this post or by contacting me via electronic mail at jonespaulstephen@hotmail.com

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hiya,

    You need Cascading Style Sheets to make this happen. Here is some example code, this goes in your <head> -

    Code:
    <style type="text/css">
    <!--
    
    a {
    color: blue;
    text-decoration: underline;
    }
    a:hover {
    color: black;
    text-decoration: none;
    }
    
    -->
    </style>
    Be aware that this doesn't work too well with Netscape. It doesn't like the 'hover' property.

    For an introduction to Cascading Style Sheets, try -

    http://css.somepeople.net
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread