Child div 100% height to parent auto height

后端 未结 7 1121
孤城傲影
孤城傲影 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;
    }
    
    0 讨论(0)
提交回复
热议问题