For div to extend full height

前端 未结 5 695
轻奢々
轻奢々 2020-11-28 07:08

Is there a method I can use for a div to extend to full height? I\'ve got a sticky footer in it as well.

Here\'s the web page: Website removed. The

5条回答
  •  执笔经年
    2020-11-28 07:37

    if setting height to 100% doesn't work, try min-height=100% for div. You still have to set the html tag.

    html {
        height: 100%;
        margin: 0px;
        padding: 0px;
        position: relative;
    }
    
    #fullHeight{
    
        width: 450px;
        **min-height: 100%;**
        background-color: blue;
    
    }
    

提交回复
热议问题