To achieve this layout, you can utilize nested row
classes:
<div class="container" style="border:1px solid black;">
<div class="row">
<div class="col-xs-8" style="border:1px solid black;">
<div class="row">
<div class="col-xs-12" style="border:1px solid black;">
<p>[1] Lorem ipsum dolor sit amet, et eum altera nostrum, in nam ludus dictas. Has et velit ignota, sed eripuit pericula in, vel te munere ubique temporibus. Ius essent integre ne, te mel autem quaeque, ad omnes voluptua salutandi mel. Vitae perpetua abhorreant cum et, est definitiones vituperatoribus ea. Sed no admodum temporibus reformidans, id nam dolorem vivendo accusamus, et vel solum postulant.</p>
</div>
</div>
<div class="row">
<div class="col-xs-12" style="border:1px solid black;">
<p>[3] Lorem ipsum dolor sit amet, et eum altera nostrum, in nam ludus dictas. Has et velit ignota, sed eripuit pericula in Lorem ipsum dolor sit amet, et eum altera nostrum, in nam ludus dictas. Has et velit ignota, sed eripuit pericula in</p>
</div>
</div>
</div>
<div class="col-xs-4" style="border:1px solid black;">
<div class="row">
<div class="col-xs-12" style="border:1px solid black;">
<p>[2] Lorem ipsum dolor sit amet, et eum altera nostrum, in nam ludus dictas. Has et velit ignota, sed eripuit pericula in Lorem ipsum dolor sit amet, et eum altera nostrum, in nam ludus dictas. Has et velit ignota, sed eripuit pericula in Lorem ipsum dolor sit am...
</div>
</div>
<div class="row">
<div class="col-xs-12" style="border:1px solid black;">
<p>[4] This column needs to shift up depending on the content onthe top-left section</p>
</div>
</div>
</div>
</div>
</div>
The main row
consists of two columns, col-xs-8
and col-xs-4
, each containing multiple nested row
classes with col-xs-12
. Depending on the content, these columns will resize and reposition based on the content above. Odd-numbered columns go in the right col-xs-8
, while even-numbered columns go in the left col-xs-4
.
For a visual example, refer to this Bootply.
I chose to use col-xs-*
for columns as they are the most versatile, but you can adjust to col-sm
, col-md
, or col-lg
classes based on your requirements.