Results 1 to 2 of 2

Thread: All Levels menu CSS problem

  1. #1
    Join Date
    Jul 2008
    Posts
    25
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default All Levels menu CSS problem

    1) Script Title: All Levels

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...menu/index.htm

    3) Describe problem:
    When viewing this menu on IE6, some of the dropdown items would appear with underlined hyperlinks. When you hover over, the underlines wiould disappear. My coworkers see more underlined links than I do.

    I figured out that the underlined links where those previously clicked on (the a:visited state). The remedy for this is to specify text-decoration: none; for all anchor states.

    .ddsubmenustyle li a,
    .ddsubmenustyle li a:link,
    .ddsubmenustyle li a:active,
    .ddsubmenustyle li a:visited{
    text-decoration: none;
    display: block;
    width: 150px;
    height:22px; line-height:22px;
    color: #7c7c7c;
    font-weight: bold;
    background-color: #fff;
    padding: 1px 5px 1px 8px;
    border-bottom: 1px solid #c9d2e3;
    }

    .ddsubmenustyle li a:hover{
    background-color: #fff;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    padding: 1px 5px 1px 8px;
    border-bottom: 1px solid #c9d2e3;
    height:22px; line-height:22px;
    }

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    This generally would only be a problem if those states are otherwise designated for more general selectors that could also apply.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •