Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Dec 2006
    Posts
    56
    Thanks
    12
    Thanked 0 Times in 0 Posts

    IE6 Layout Issue

    The problem:
    So I'm building a new site and I have am having an issue with ie6. http://dev.joshandmichelle.net
    In Ie7 and ie8 it shows up right, but in ie6, there's a gap at the bottom of the layout. It's fine in firefox, safari and chrome.

    Anyway, I'm just curious if anyone knows how I can work through the issue, I'm scratching my head on it and can't seem to get it working.

    Many thanks.

  • #2
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    My computer with IE6 installed is switched off so I can't preview Your site. But I see there's no conditional IE6 statement. Try making alternative css file with some fixes. I guess You'd need to relatively position broken div, but, as I said, I can't see what's wrong

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,748
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello yannibmbr,
    It looks like you have not cleared your floats...

    Make your CSS look like this:
    Code:
    #content {
    	width: 960px;
    	padding-top: 65px;
    overflow: auto;
    }
    Here is a site that describes how that works.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,957
    Thanks
    9
    Thanked 727 Times in 721 Posts
    I think this might be an issue with the empty #content-btm div. IE6 doesn't like empty divs, it seems. Try adding a comment:

    Code:
    <div id="content-btm"><!--for IE6 --></div>

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Code:
    #content #content-btm {
    	margin: 0px;
    	padding: 0px;
    	/*width: 960px;*/
    	background-image: url(content-btm-bg.png);
    	background-repeat: no-repeat;
    	background-position: left bottom;
    	height: 80px;
    	/*float: left;*/
    	clear: left;
    }
    should do it for you.

    PS: Don't use float, if you don't need to actually float it.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    New Coder
    Join Date
    Dec 2006
    Posts
    56
    Thanks
    12
    Thanked 0 Times in 0 Posts
    Thanks everyone. I will give your suggestions a try once I get home and let you know what happens... =)


  •  

    Posting Permissions

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