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
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts

    Width problem in IE6

    Hi guys!

    I've started making a new design for a new site. It looks all good in FF, but in IE6 there is a problem with the width: The #right jumps below the #main div. Can anybody spot the error? I just seem to can't..

    http://behrentzs.com/test/Photosite/

    (view source for the rest)
    Code:
    #main {				width:750px;
    					background-color:#ddd;
    					padding:10px;
    					margin:10px;
    					margin-bottom:0px;
    					float:left;
    					}
    					
    #subcontent {		width:170px;
    					background-color:#ddd;
    					padding:10px;
    					margin-top:10px;
    					margin-right:10px;
    					float:left;
    					}

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,707
    Thanks
    0
    Thanked 237 Times in 232 Posts
    Hi there CaptainB,

    add display:inline to your #main rule.

    coothead

  • #3
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    Thanks a lot, Coothead!
    (Uh, where have the "Thanks" buttons gone???????)

    But can anyone explain why I had to add that? I've never had to do that before.

  • #4
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,707
    Thanks
    0
    Thanked 237 Times in 232 Posts
    Hi there CaptainB,

    sorry, I forgot to add this link to my previous post.

    I hope that helps.
    coothead

  • #5
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    You saved me again, Coothead - thanks a lot for the link, added to bookmarks

  • #6
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,707
    Thanks
    0
    Thanked 237 Times in 232 Posts
    No problem, you're welcome.


  •  

    Posting Permissions

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