We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25883
    • 128 Posts
    Hi,

    I have a sidebar with this CSS code:

    div.left a:link {text-decoration: none; color: black; }
    div.left a:active {text-decoration: none; color: black; }
    div.left a:hover {text-decoration: underline; font-weight: bold; color: #27408B; }
    div.left a:visited {text-decoration: none; color: black; }


    Everything works propery until a link is visited.
    After a visit, then upon the next hover, the link will bold properly, but will not underline or change color.

    Is there a better way to code this?

    Thanks,

    John
      • 4310
      • 2,310 Posts
      div.left a:link, div.left a:active, div.left a:visited {text-decoration: none; color: black; }
      div.left a:hover {text-decoration: underline; font-weight: bold; color: #27408B; }
      

      Try the above, I believe the order is important, if visited is after hover it will have precedence.

        • 25883
        • 128 Posts
        Thanks Bunk58, that worked perfectly.
          • 4310
          • 2,310 Posts
          Glad it fixed it grin