bootstrap 4 row height set by specific col - not highest one

后端 未结 1 611
野趣味
野趣味 2020-12-22 03:59

I have a row with two cols.
The first col contains some stuff that has to be visible: it shall not overflow the row nor scroll.
The second row contains a long list t

相关标签:
1条回答
  • 2020-12-22 04:29

    You need to make the list-group position:absolute, and then set overflow:auto on both the list and list-group...

    .list {
        overflow: auto
    }
    
    .scroll {
        position:absolute;
        top:0;
        left:0;
        right:0;
        bottom:0;
        overflow:auto;
    }
    

    Demo: https://www.codeply.com/go/X2ydvxPU3k


    Also see:
    One flex item sets the height limit for siblings
    Flex equal height column but respect max height of another column

    0 讨论(0)
提交回复
热议问题