SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Feb 2007
    Location
    Zagreb, Croatia
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE6 and floats...

    Hello,

    I am having problem with the floats in IE6.
    Everything works fine in every other browser, but in IE6 #sidebar-left and #sidebar-right are put on top of viewport instead of #sidebars. I figured that I can fix this by adjusting margins only for IE6, but is there any other way to fix this?

    Here is the link: http://skrati.net/ie6

    Thanks in advance!
    "Only two things are infinite, the universe and
    human stupidity, and I'm not sure about the
    former."
    -- Albert Einstein

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

    I couldn't see a sidebar-left or sidebar-right in your code! Have you fixed this already?

  3. #3
    SitePoint Member
    Join Date
    Feb 2007
    Location
    Zagreb, Croatia
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, I haven't fixed it yet, been trying this time.
    How can't you see it?

    Here it is, circled in red: http://www.imagesforme.com/out.php/i98479_ie6.jpg
    "Only two things are infinite, the universe and
    human stupidity, and I'm not sure about the
    former."
    -- Albert Einstein

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,526
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    How can't you see it?
    Here it is, circled in red: http://www.imagesforme.com/out.php/i98479_ie6.jpg
    Still can't see it

    This is the link you gave us!!

    http://skrati.net/ie6/

  5. #5
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,526
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    Looking at the jpg I can just make out that the link you should have given me was this:

    http://www.stribor.hr/ie6/index.html

    The issue is a "haslayout" issue as you have wrapped the page in a container that doesn't have layout.

    Add this fix.

    Code:
    #wrapper{width:100%}

  6. #6
    SitePoint Member
    Join Date
    Feb 2007
    Location
    Zagreb, Croatia
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Woops, sorry for the link, it's a URL shortening service, I didn't think about language

    Yes, this solved the problem, first I was thinking it has something to do with the layout in IE6, but didn't inspect it through the end .
    Note to self: don't forget to give elements a layout!

    Thanks!
    "Only two things are infinite, the universe and
    human stupidity, and I'm not sure about the
    former."
    -- Albert Einstein

  7. #7
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,526
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    You're welcome


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
  •