Child div 100% height to parent auto height

后端 未结 7 1133
孤城傲影
孤城傲影 2021-02-12 19:50

Im here because other similar questions couldn\'t help my particular problem.

I need right div to be 100% height all the time, where the parent

7条回答
  •  天涯浪人
    2021-02-12 20:50

    Try by giving the height of container a fixed value

    this will also fix the issue. Just tried it in jsFiddle

    http://jsfiddle.net/C9Kmx/35/

    .container
    {
        min-height: 10px;
        width: auto;
        height: 100px;
        background-color: #eeeeee;
    }
    

提交回复
热议问题