position:absolute;
along with flex
:Position the flex item with position: relative
. Then inside of it, add another <div>
element with:
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
This extends the element to the boundaries of its relative-positioned parent, but does not allow to extend it. Inside, overflow: auto;
will then work as expected.
.all-0 {_x000D_
top: 0;_x000D_
bottom: 0;_x000D_
left: 0;_x000D_
right: 0;_x000D_
}_x000D_
p {_x000D_
text-align: justify;_x000D_
}_x000D_
.bottom-0 {_x000D_
bottom: 0;_x000D_
}_x000D_
.overflow-auto {_x000D_
overflow: auto;_x000D_
}
_x000D_
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" rel="stylesheet"/>_x000D_
_x000D_
_x000D_
<div class="p-5 w-100">_x000D_
<div class="row bg-dark m-0">_x000D_
<div class="col-sm-9 p-0 d-flex flex-wrap">_x000D_
<!-- LEFT-SIDE - ROW-1 -->_x000D_
<div class="row m-0 p-0">_x000D_
<!-- CARD 1 -->_x000D_
<div class="col-md-8 p-0 d-flex">_x000D_
<div class="my-card-content bg-white p-2 m-2 d-flex flex-column">_x000D_
<img class="img img-fluid" src="https://via.placeholder.com/700x250">_x000D_
<h4>Heading 1</h4>_x000D_
<p>_x000D_
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old..._x000D_
</div>_x000D_
</div>_x000D_
<!-- CARD 2 -->_x000D_
<div class="col-md-4 p-0 d-flex">_x000D_
<div class="my-card-content bg-white p-2 m-2 d-flex flex-column">_x000D_
<img class="img img-fluid" src="https://via.placeholder.com/400x250">_x000D_
<h4>Heading 1</h4>_x000D_
<p>_x000D_
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old..._x000D_
</div>_x000D_
</div>_x000D_
</div>_x000D_
<div class="row m-0">_x000D_
<!-- CARD 3 -->_x000D_
<div class="col-md-4 p-0 d-flex">_x000D_
<div class="my-card-content bg-white p-2 m-2 d-flex flex-column">_x000D_
<img class="img img-fluid" src="https://via.placeholder.com/400x250">_x000D_
<h4>Heading 1</h4>_x000D_
<p>_x000D_
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old..._x000D_
</div>_x000D_
</div>_x000D_
<!-- CARD 4 -->_x000D_
<div class="col-md-4 p-0 d-flex">_x000D_
<div class="my-card-content bg-white p-2 m-2 d-flex flex-column">_x000D_
<img class="img img-fluid" src="https://via.placeholder.com/400x250">_x000D_
<h4>Heading 1</h4>_x000D_
<p>_x000D_
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old..._x000D_
</div>_x000D_
</div>_x000D_
<!-- CARD 5-->_x000D_
<div class="col-md-4 p-0 d-flex">_x000D_
<div class="my-card-content bg-white p-2 m-2 d-flex flex-column">_x000D_
<img class="img img-fluid" src="https://via.placeholder.com/400x250">_x000D_
<h4>Heading 1</h4>_x000D_
<p>_x000D_
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old..._x000D_
</div>_x000D_
</div>_x000D_
</div>_x000D_
</div>_x000D_
<div class="col-sm-3 p-0">_x000D_
<div class="bg-white m-2 p-2 position-absolute all-0 d-flex flex-column">_x000D_
<h4>Social Sidebar...</h4>_x000D_
<hr />_x000D_
<div class="d-flex overflow-auto">_x000D_
<p>_x000D_
Topping candy tiramisu soufflé fruitcake ice cream chocolate bar. Bear claw ice cream chocolate bar donut sweet tart. Pudding cupcake danish apple pie apple pie. Halva fruitcake ice cream chocolate bar. Bear claw ice cream chocolate bar donut sweet tart._x000D_
opping candy tiramisu soufflé fruitcake ice cream chocolate bar. Bear claw ice cream chocolate bar donut sweet tart. Pudding cupcake danish apple pie apple pie. Halva fruitcake ice cream chocolate bar. Bear claw ice cream chocolate bar donut sweet tart._x000D_
opping candy tiramisu soufflé fruitcake ice cream chocolate bar. Bear claw ice cream chocolate bar donut sweet tart. Pudding cupcake danish apple pie apple pie. Halva fruitcake ice cream chocolate bar. Bear claw ice cream chocolate bar donut sweet tart._x000D_
Pudding cupcake danish apple pie apple pie. Halvafruitcake ice cream chocolate bar. Bear claw ice cream chocolate bar donut sweet tart. Pudding cupcake danish apple pie apple pie. Halvafruitcake ice cream chocolate bar. Bear claw ice cream_x000D_
chocolate bar donut sweet tart. Pudding cupcake danish apple pie apple pie. Halvafruitcake ice cream chocolate bar. Bear claw ice cream chocolate bar donut sweet tart. Pudding cupcake danish apple pie apple pie. Halvafruitcake ice cream chocolate_x000D_
bar. Bear claw ice cream chocolate bar donut sweet tart. Pudding cupcake danish apple pie apple pie. Halva_x000D_
</div>_x000D_
</div>_x000D_
</div>_x000D_
</div>
_x000D_
Good Luck...