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
    Jan
    Jan is offline
    Regular Coder
    Join Date
    Jul 2002
    Location
    Finland
    Posts
    204
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Underline dissappears

    Heya!

    Okay, so this isn't actually a web building question, but here goes: Has anyone else noticed apart from me, that when you use underline in a:hover, the line dissappears after you've clicked it. I mean, when the page reloads, and you hover over the same link, the underline dosen't show. Howcome??? To get it back, you need to clear the history in the browser. This is a dumb question, I know , but I would really want to know.


    ~Jan

  • #2
    Master Coder
    Join Date
    Feb 2003
    Location
    Ume, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    This might be because your styles are overriding eachother. Use the following order: lvha (link visited hover active), and see if that doesn't fix it.

    You can use combinations, also:

    :link:focus, :visited:focus { /*styles*/ }
    :link { /*styles*/ }
    :visited { /*styles*/ }
    :link:hover, :visited:hover { /*styles*/ }
    :link:active, :visited:active { /*styles*/ }

    That about covers it.


    (Remember, :hover should actually work on all elements, not only links, and does so in at least the mozilla browser. Because of this, the combined syntax is to prefer.)
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yeah, like lioean said... make sure the a:visited is above a:hover and you shouldnt have that problem
    redhead

  • #4
    Jan
    Jan is offline
    Regular Coder
    Join Date
    Jul 2002
    Location
    Finland
    Posts
    204
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks! It worked! Tack s mycket!


    ~Jan


  •  

    Posting Permissions

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