i am trying to make a responsive website, a blog but i have a problem that am experiencing, the bootstrap grid i have col-lg-4 per blog but they vary in height and it follows a pattern by maintaining the same line of column, but i would like to remove the extra spaces. hope anyone around could help.
<div class="container">
<div class="row">
<div class="col-lg-4" style="height: 200px"> i am a div of height
200px</div>
<div class="col-lg-4" style="height: 400px"> i am a div of height
400px</div>
<div class="col-lg-4" style="height: 300px"> i am a div of height
300px</div>
<div class="col-lg-4" style="height: 500px"> i am a div of height
500px</div>
</div>
</div>
row{ display: flex; flex-wrap: nowrap}
The way i want it to be