CSS dropdown menu doesnt work in IE6

Discussion in 'HTML & Website Design' started by jmcc1982, Nov 2, 2009.

  1. #1
    Hi

    I am unable to get this code to run in IE6. The menus display fine but when i hover my submenu doesnt display. Would someone please take a look and see what I'm doing wrong.

    Thanks

    CSS code:

    #nav, #dropdown {
    margin:0;
    padding:0 10px 0 10px;
    list-style:none;
    overflow:hidden;
    background:#fff url(button1.gif);
    border:1px solid #000;
    border-width:0 1px;
    border-bottom:1px solid #444;
    float:inherit;
    }
    #nav li {

    padding:inherit;
    display:inline;
    }
    #nav li a{
    display:inline;
    height:35px;
    line-height:35px;
    color:#DAE0F1; /* menu text color */
    text-decoration:none;
    font-size:11px;
    font-family:arial, verdana, sans-serif;
    font-weight:bold;
    text-align:left;
    padding:0 5px 0 5px;
    cursor:pointer;
    }
    #nav li a:hover {
    color:#FFF;
    background:#000 url(button2.gif); /* makes background green */
    }
    #dropdown {
    position:absolute;
    display:none; /* hides submenu */
    z-index:50;
    }
    /* display submenu underneath each other */
    #dropdown li {
    float:left;
    }
    /* display submenu */
    #itemtwo:hover #dropdown {
    display:list-item;
    float:left;
    }
     
    jmcc1982, Nov 2, 2009 IP
  2. drawer

    drawer Peon

    Messages:
    236
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Nothing works in IE6, you aren't doing anything wrong. Why are you concerned?

    Most webmasters refuse to support IE6 these days because its so horrible.
     
    drawer, Nov 2, 2009 IP
  3. xira

    xira Active Member

    Messages:
    315
    Likes Received:
    8
    Best Answers:
    4
    Trophy Points:
    68
    #3
    Despite the previous comment, I do believe supporting IE6 is still relevant. Try variations to the code in which it does work in IE6, and use the _ (underscore) before the IE6 CSS code. The other browsers will ignore it.
     
    xira, Nov 3, 2009 IP
  4. forex4noobs

    forex4noobs Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    this might help
    http://htmldog.com/articles/suckerfish/dropdowns/
     
    forex4noobs, Nov 3, 2009 IP