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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Location
    Carmel California
    Posts
    471
    Thanks
    0
    Thanked 1 Time in 1 Post

    qwerky css a:hover

    hi, I have this snipit of css:
    div#bod a:link {color: #4AADAD; text-decoration: none; border-bottom: 1px solid #4AADAD;}
    div#bod a:active {}
    div#bod a:hover {color: #2A5FAD; text-decoration: none; border-bottom: 1px dashed #2A5FAD;}
    div#bod a:visited {color: #4AADAD; text-decoration: none; border-bottom: 1px solid #4AADAD;}
    it seems pretty simple (dashing line and changing colors on hover) but I just noticed that once a link is visited the hover will no longer work, what is going on? ive seen this exact effect work before with just different colors. Ive tried messing around with it for a while with no luck.
    Kris Hubby
    kwhubby site

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    link
    visited
    hover
    active

    Has to be in that order, or it won't work... (some people use "LoVe/HAte" to remember it)

  • #3
    Regular Coder
    Join Date
    Nov 2002
    Location
    Carmel California
    Posts
    471
    Thanks
    0
    Thanked 1 Time in 1 Post
    Thanks! nice and easy fix, never knew it had to be in that order, never seemed to have any problem with order in other instances.
    Kris Hubby
    kwhubby site

  • #4
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Yeah, I'm not sure if it's a browser issue or a specs issue but it used to drive me nutso before I learned it...


  •  

    Posting Permissions

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