SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hover function not working after linked page is created

    Hi,

    I'm creating a site and have noticed that in my navigation links, the hover function no longer works once that page's code has been written and saved. Has anybody come across this problem before?

    Thanks

  2. #2
    SitePoint Wizard
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,678
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you post some code for us to look at?

  3. #3
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, this is what I believe to be the relavent code:


    CSS Code
    #header a:link, #header a:visited {
    text-decoration: none;
    font-weight: bold;
    background-color: #000000;
    color: #ff0000;
    }
    #header a:hover {
    text-decoration: none;
    font-weight: bold;
    background-color: #000000;
    color: #ddca5e;
    }


    HTML Code
    <ul>
    <li><a href="news.html">NEWS</a>&nbsp;&nbsp;|&nbsp;</li>
    <li><a href="tourdates.html">TOUR DATES</a>&nbsp;&nbsp;|&nbsp;</li>
    <li><a href="gallery.html">GALLERY</a>&nbsp;&nbsp;|&nbsp;</li>
    <li><a href="history.html">HISTORY</a>&nbsp;&nbsp;|&nbsp;</li>
    <li><a href="interviews.html">INTERVIEWS/REVIEWS</a>&nbsp;&nbsp;|&nbsp;</li>
    <li><a href="merchandise.html">MERCHANDISE</a>&nbsp;&nbsp;|&nbsp;</li>
    <li><a href="music.html">MUSIC</a>&nbsp;&nbsp;|&nbsp;</li>
    <li><a href="video.html">VIDEO</a>&nbsp;&nbsp;|&nbsp;</li>
    <li><a href="contact.html">CONTACT</a></li>
    </ul>

  4. #4
    SitePoint Wizard
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,678
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I cant see any reason it would be doing that

    Could you try putting this in instead of what you have:

    Code:
    #header a:link, a:visited

  5. #5
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Changing to that code does not solver the problem. Thanks for your input. I'll continue to troubleshoot this.


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
  •