SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist kyllle's Avatar
    Join Date
    Jun 2008
    Posts
    469
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    main content area blank in ie6?

    Hi all,

    Iv created this site http://icehouseonline.co.uk/

    In all the pages that apart from the homepage the main content area seems to be messing about and not displaying any content in ie6, anyone any ideas why this could be?

    Thanks in advance!

    Kyle

  2. #2
    Ripe Tomatos silver trophybronze trophy Rayzur's Avatar
    Join Date
    Jun 2007
    Location
    Texas
    Posts
    4,174
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Hi kyllle,
    You need to set "haslayout" on the #main_content div for IE6. The overflow property took care of haslayout for IE7. You might consider changing it form auto to hidden, that will eliminate the risk of any scrollbars.

    A simple width will take care of IE6. (account for your paddings)

    Code:
    #main_content{
        background: #fff;
        padding: 20px 20px 15px 20px;
        position: relative;
        overflow:hidden;/*contain floats (was auto)*/
        width:900px;/*IE6 haslayout (940px total with padding)*/
    }

  3. #3
    SitePoint Evangelist kyllle's Avatar
    Join Date
    Jun 2008
    Posts
    469
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers Rayzur!! Worked a treat!


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
  •