SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2002
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    a:hover in a table only

    Hi

    I want the a:hover colour to be different in my nav menu to the main body of the page. (which is within a table)

    What's the best way to go about this?

    Thanks
    Andrew

  2. #2
    Gone!
    Join Date
    Aug 2001
    Location
    Witty Location Parody
    Posts
    3,889
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use normal a:blah for your body text links as below. Set up an individual pseudo class with different colours. Then just use as you would normally:

    <td class="navbar"></td>

    Code:
    
    //for normal body text
    
    a:link { color: #003399}
    a:visited { color: #993399}
    a:hover { color: #009999}
    a:active { color: #993333}
    
    //for class="navbar"
    
    a.navbar:link { color: #6600CC}
    a.navbar:visited { color: #666666}
    a.navbar:hover { color: #0066CC}
    a.navbar:active { color: #CC6633}

  3. #3
    SitePoint Member
    Join Date
    Mar 2002
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So simple.

    Thanks


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
  •