CSS dropdowns in IE - help!!

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default CSS dropdowns in IE - help!!

    I'm working in Dreamweaver MX and have created a CSS drop-down navigation
    that's working exactly as desired in Safari and Opera, but problematic in IE. I
    downloaded the csshover.htc fix and that solved the IE thing except that the
    dropdown lists were extending to the edge of the page instead of keeping the
    width of their parent navigation items as they do in the other browsers (I
    posted on that problem earlier in the general DW section but no luck). Since
    then I've uploaded the file for testing and now the dropdowns don't show at all
    in IE!! Please please help - this is driving me crazy! The file in question can
    be viewed at:

    [url]www.webmysteryshoppers.com/New/test.html[/url]

    and the relevant css code is:

    body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #336699;
    background-color: #FFFFFF;
    behavior:url("csshover.htc");

    #nav {
    font-size: 90%;
    color: #FFFFFF;
    font-weight: bold;
    padding: 0;
    margin: 0;
    }

    #nav ul {
    padding: 0;
    margin: 0;
    border: 1px solid #003366;
    }

    #nav li {
    float: left;
    position: relative;
    text-align: left;
    list-style-type: none;
    }

    #nav li ul {
    width: 100%;
    background-color: #E4DDF1;
    }


    #nav ul li {
    width: 100%;
    background-color: #E4DDF1;
    }

    #nav li>ul {
    top: auto;
    left: auto;
    }

    #nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    }

    #nav li:hover ul {
    display: block;
    color: #003399;
    }


    #nav li a {
    padding: 0px 14px;
    text-decoration: none;
    line-height: 15px;
    display: block;
    }

    #nav a:link, #nav a:visited {
    color: #FFFFFF;
    }
    #nav a:hover, #nav a:active {
    background-color: #6699FF;
    color: #FFFFFF;
    }

    #nav li ul a:link, #nav li ul a:visited {
    color: #003399;
    }
    #nav li ul a:hover, #nav li ul a:active {
    color: #003399;
    }

    If anyone can help me out that would be really great.
    Andie

    jelllyfish Guest

  2. Similar Questions and Discussions

    1. Dependent Dropdowns
      I have searched high and low and haven't found a good tutorial for doing dependent dropdowns. I have 2 tables in my DB, Cat and SubCat, Cat...
    2. MULTIPLE DROPDOWNS, ASP, VBSCRIPT
      Hi, I''m looking for someone to help me out in ASP. I''ve 3 to 4 or more combo boxes. On the change event of the combo boxes I want to fill the...
    3. Can JS dropdowns be on top of layers?
      Just wondering..... check it: www.downtownsound.com BR Thanks!
    4. Dropdowns in Netscape 4.7
      Kim!!! Thanks.
    5. DropDowns... another one.
      Hi all, I've got a DataList control that binds to a sqldatareader. In each row, I'd like to include a DropDown box with 5 fixed selections. ...
  3. #2

    Default Re: CSS dropdowns in IE - help!!

    Hi Andie,

    Make sure the htc file path is correct and that is has been uploaded.
    Nice Swap Class menu, btw. Very well done.

    --
    Al Sparber - PVII
    [url]http://www.projectseven.com[/url]
    DW Extensions - Menu Systems - Tutorials - CSS FastPacks
    ---------------------------------------------------------
    Webdev Newsgroup: [url]news://forums.projectseven.com/pviiwebdev/[/url]
    CSS Newsgroup: [url]news://forums.projectseven.com/css/[/url]
    RSS/XML Feeds: [url]http://www.projectseven.com/xml/[/url]




    "jelllyfish" <webforumsuser@macromedia.com> wrote in message
    news:dj8g7g$l1j$1@forums.macromedia.com...
    > I'm working in Dreamweaver MX and have created a CSS drop-down
    > navigation
    > that's working exactly as desired in Safari and Opera, but problematic
    > in IE. I
    > downloaded the csshover.htc fix and that solved the IE thing except
    > that the
    > dropdown lists were extending to the edge of the page instead of
    > keeping the
    > width of their parent navigation items as they do in the other
    > browsers (I
    > posted on that problem earlier in the general DW section but no luck).
    > Since
    > then I've uploaded the file for testing and now the dropdowns don't
    > show at all
    > in IE!! Please please help - this is driving me crazy! The file in
    > question can
    > be viewed at:
    >
    > [url]www.webmysteryshoppers.com/New/test.html[/url]
    >
    > and the relevant css code is:
    >
    > body {
    > font-family: Arial, Helvetica, sans-serif;
    > font-size: 12px;
    > color: #336699;
    > background-color: #FFFFFF;
    > behavior:url("csshover.htc");
    >
    > #nav {
    > font-size: 90%;
    > color: #FFFFFF;
    > font-weight: bold;
    > padding: 0;
    > margin: 0;
    > }
    >
    > #nav ul {
    > padding: 0;
    > margin: 0;
    > border: 1px solid #003366;
    > }
    >
    > #nav li {
    > float: left;
    > position: relative;
    > text-align: left;
    > list-style-type: none;
    > }
    >
    > #nav li ul {
    > width: 100%;
    > background-color: #E4DDF1;
    > }
    >
    >
    > #nav ul li {
    > width: 100%;
    > background-color: #E4DDF1;
    > }
    >
    > #nav li>ul {
    > top: auto;
    > left: auto;
    > }
    >
    > #nav li ul {
    > display: none;
    > position: absolute;
    > top: 100%;
    > left: 0;
    > }
    >
    > #nav li:hover ul {
    > display: block;
    > color: #003399;
    > }
    >
    >
    > #nav li a {
    > padding: 0px 14px;
    > text-decoration: none;
    > line-height: 15px;
    > display: block;
    > }
    >
    > #nav a:link, #nav a:visited {
    > color: #FFFFFF;
    > }
    > #nav a:hover, #nav a:active {
    > background-color: #6699FF;
    > color: #FFFFFF;
    > }
    >
    > #nav li ul a:link, #nav li ul a:visited {
    > color: #003399;
    > }
    > #nav li ul a:hover, #nav li ul a:active {
    > color: #003399;
    > }
    >
    > If anyone can help me out that would be really great.
    > Andie
    >
    Al Sparber- PVII Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139