SitePoint Sponsor

User Tag List

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

    ie6 bug - uls won't float to the left!

    Hi, I hope someone can help me with this ie6 bug, here's the link to the html file:

    http://www.filamentmedia.co.uk/ie6bug/test-list.html

    When you scroll over the 'products & buy' link, five uls will appear, they should be floating to the left, but it doesn't work in ie6.

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

    The problem in IE6 is that the parent float (top-level) has a fixed width and IE6 won't let it escape from this width and puts everything vertical.

    You would need to remove the width from here:

    Code:
    #nav .topnav li.top-level {
        background:transparent;
        border-bottom:1px solid #000000;
        float:left;
        font-weight:bold;
        height:15px;
        padding:6px 13px 8px;
        /*width:164px;*/
    }
    You could set the anchors width instead if needed.

  3. #3
    SitePoint Member
    Join Date
    Mar 2009
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks! that fixed it


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
  •