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

    setting DIV heights to 100% not working?

    I posted a question on here a couple days ago and you guys were really helpful, so I thought I'd throw another one at you.

    i'm working on a website and want the heights of the of the divs to automatically adjust according to the content, instead of me going in and changing the div height manually. i've set the div heights to 100% but there is still a lot of white space at the bottom of them or they hang over the footer of the page. How do I make them all size up nicely and have the footer follow beneath it, instead of staying put.


    here is the site:
    www.chrissybdesign.com/exporttradebrokers

    the pages I'm having trouble with specifically are:
    http://chrissybdesign.com/exporttrad...whyexport.html
    http://chrissybdesign.com/exporttrad...marketing.html
    http://chrissybdesign.com/exporttrad...etStarted.html

    what am i doing wrong? thanks in advance

  • #2
    New Coder
    Join Date
    Dec 2009
    Location
    United Kingdom...for now
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts
    When you set a div to 100% height, it means to use 100% of the available vertical space, divs usually do adjust their height according to what is inside them without explicitly declaring it, but you can try height:auto;.


  •  

    Posting Permissions

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