Automatic Height???

Discussion in 'CSS' started by Riverofrhyme, Oct 26, 2008.

  1. #1
    I'm trying to code a design I've been making over the past few days. Unfortunately, the main content part (#wrap) isn't adjusting it's height even when using auto or 100% . Can anyone tell me how to fix this?

    http://viral.zetabin.com
     
    Riverofrhyme, Oct 26, 2008 IP
  2. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you want a DIV to be 100% then you have to also specify html, body { height: 100%; }
     
    wd_2k6, Oct 26, 2008 IP
  3. justinlorder

    justinlorder Peon

    Messages:
    4,160
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You just don't setting the height, DIVs are always "auto height" according to your content .
     
    justinlorder, Oct 27, 2008 IP
  4. feha

    feha Active Member

    Messages:
    1,005
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    80
    #4
    It might be that he wants full screen height ...
     
    feha, Oct 27, 2008 IP