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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    wrap height not adjusting to the height of the content

    Hi All,

    I am in the process of designing a website for a client and i am having some issues with my wrap div height.

    I have a <div id="wrap"> in all my pages with this CSS

    #wrap {
    width:943px;
    height:auto;
    margin:0 auto;
    background:#FFFFFF;
    }

    But for some reason it isnt auto adjusting to the height of the content.

    This wouldnt usually bother me but i have a white background on the wrap div and i need this to auto adjust to the height of the content so that the website has a white background.

    At the moment i am forcing each pages wrap height to accomadate the content but really i would like it to auto adjust.

    please can someone take a look here http://bit.ly/hxLdsy and see how i can fix this.

    thanks

    Craig

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Add overflow:auto; to #wrap to clear the floats, read http://www.quirksmode.org/css/clearing.html
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    tktest (03-17-2011)

  • #3
    New to the CF scene
    Join Date
    Mar 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Tanks

    Ah nice one mate thats been doing my head in.


  •  

    Posting Permissions

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