SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Apr 2010
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dropdown Menu Not Working Correctly in IE7

    Hey,

    My dropdown menu works fine in Firefox and Safari, but collapses in IE7. Here's the link. http://robertbarnesdesign.com/UPLOAD/index.html

    Thanks.
    Robert JJ

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,784
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Hi,

    You need to provide co-ordinates most of the time for absolute elements in IE as it gets affected by various things like text-alignment.

    Code:
    ul#main-nav li ul {
        padding:0;
        margin:0;
        display:none;
        position: absolute;
        left:0;
        top:100%;
        }

  3. #3
    SitePoint Member
    Join Date
    Apr 2010
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sweet! Worked like a charm. Thanks Paul O'B, you made my day!
    Robert JJ


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
  •