I'm struggling with this code snippet:
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row border border-success">
<div class="cols-12 col-sm-6 col-lg-4" class="border border-info">
<header class="h4 border border-primary">
Some header text
</header>
<div class="border border-danger">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas feugiat vitae lacus eget pretium. Donec vel
mauris lorem. Vivamus massa enim, lacinia et lorem vel, porta viverra orci. Maecenas sagittis feugiat lectus,
ac imperdiet urna fringilla et. In commodo nunc sed nibh consectetur sagittis. Donec sit amet sapien nec est
tempor egestas in vel augue. Proin sodales, tortor eu mollis cursus, eros ante consequat ex, et condimentum
massa mauris et sem.
</div>
</div>
<div class="cols-12 col-sm-6 col-lg-4" class="border border-info">
<header class="h4 border border-primary">
Some header text
</header>
<div class="border border-danger">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas feugiat vitae lacus eget pretium. Donec vel
mauris lorem. Vivamus massa enim.
</div>
</div>
<div class="cols-12 col-sm-6 col-lg-4" class="border border-info">
<header class="h4 border border-primary">
Some really long text which is probably gonna take more than one or two lines
</header>
<div class="border border-danger">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas feugiat vitae lacus eget pretium. Donec vel
mauris lorem. Vivamus massa enim, lacinia et lorem vel, porta viverra orci. Maecenas sagittis feugiat lectus,
ac imperdiet urna fringilla et.
</div>
</div>
</div>
My goal is to achieve something like this:
https://i.sstatic.net/Dwz11.png
I've experimented with the following solutions, but none have worked:
Trying separate rows for the header and content, which causes layout issues on mobile.
Inserting <br>
tags to create space between elements, but it's ineffective.
Utilizing the "order" class from Bootstrap for row organization, however it doesn't work well when rearranging rows for mobile views.