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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Overlapping <div>'s

    here is my page

    http://thefluidimage.com/colabi/

    everything is working right, except, when the user makes their browser very thin, the <div> on the top right overlaps the <div> on the top left.

    Can someone please look at my code and help me eliminate this overlapping.

    if you are curious, I found this page
    http://www.maxdesign.com.au/presenta.../example02.htm

    and used that as my starting point for creating this particular liquid layout.

    thanks
    Luke

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,696
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Put all your content into a container and assign a minimum width to it:
    Code:
    <body>
    <div id="container">
     <div id="headerR"></div>       
    <div id="headerL">
            <div id="headerLCorner"></div>
    </div>
    <div id="loginNav"><span>welcome</span> <span>login</span> <span>new account</span></div>
    <div id="textNav">
    </div>
    <div id="nav">
    	<div id="navTopRound"></div>
    </div>
    <div id="content">
    	<div id="contentTopRoundL"></div>
        <div id="contentTopRoundR"></div>
      	<div id="imgPlaceHolder" style="width:300px; height:300px; background-color:#FF0000;"></div><br/>
      	<div id="imgPlaceHolder2" style="width:300px; height:300px; background-color:#00FF00;"></div>
    </div>
    <div id="footer">footer</div>
    </div>
    </body>
    Also you should look at this:

  • #3
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    By minimum width I take it you mean the min-width property...? IE 6 doesn't support it, nor min-height, max-width, and max-height, unfortunately. I'd advice not to use min-width, because a fair deal of users still browse with IE 6.
    .
    .

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Quote Originally Posted by Jutlander View Post
    By minimum width I take it you mean the min-width property...? IE 6 doesn't support it, nor min-height, max-width, and max-height, unfortunately. I'd advice not to use min-width, because a fair deal of users still browse with IE 6.
    However there are plenty of workarounds. Some may not be to your liking and some may not be semantically correct but they work.

    http://www.pmob.co.uk/temp/min-width-ie.htm (does work but may not work for your layout)

    This also works
    Code:
    body {
    width:expression( documentElement.clientWidth < 800 ? (documentElement.clientWidth == 0 ? (body.clientWidth < 800 ? "800px" : "auto") : "800px") : "auto" );
    }
    It would need to be put in a stylesheet of its own and use in conjunction conditional comments or the * html hack which will still work in IE6.

    There are also workarounds for min-height as well. You simple give IE6 a set height. Its own bug causes it to expand the element if the content inside of it exceeds the set height.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks!!


  •  

    Posting Permissions

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