Child div 100% height to parent auto height

后端 未结 7 1033
忘了有多久
忘了有多久 2021-02-12 19:47

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:51

    You can use the table-cell value of the display property in this layout and remove the float like this:

    .left, .right{
        display:table-cell;
    }
    

    live demo http://jsfiddle.net/C9Kmx/34/

提交回复
热议问题