I am in the process of learning html and Bootstrap for CSS.
Below is the code I currently have:
<div class="container">
<div class="row text-center mb-4 mt-2">
<div class="col-md-12">
<div class="w-100 col-md-12 pb-4 pt-1 bg-light">
<div class="row">
<div class="col-md-12 mt-4">
<div class="col-md-4 mt-4">
<h4 class="mb-4 font-weight-bold">Step 1:</h4>
<h5 class="mt-4 pl-5 pr-5">Search for people based on your keywords.</h5>
</div>
<div class="col-md-8 mt-4">
<div class="icon-box">
<img src="static/images/step1.jpg" class="img-fluid mx-auto d-block" />
</div>
</div>
<div class="col-md-8 mt-4">
<div class="icon-box">
<img src="static/images/step2.jpg" class="img-fluid mx-auto d-block" />
</div>
</div>
<div class="col-md-4 mt-4">
<h4 class="mb-4 font-weight-bold">Step 2:</h4>
<h5 class="mt-4 pl-5 pr-5">The results are sorted by a person's responsiveness. Choose from a list of matches who are ready and willing to interact.</h5>
</div>
<div class="col-md-4 mt-4">
<h4 class="mb-4 font-weight-bold">Step 3:</h4>
<h5 class="mt-4 pl-5 pr-5">Message and make connections with people who are open for (real or virtual) coffee!</h5>
</div>
<div class="col-md-8 mt-4">
<div class="icon-box">
<img src="static/images/step3.jpg" class="img-fluid mx-auto d-block" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
However, when displayed, it looks different than expected:
https://i.sstatic.net/ub2kp.png
All elements appear stacked on top of each other. How can I arrange them as follows?
Row 1: Text followed by Image
Row 2: Image followed by Text
Row 3: Text followed by Image
Any advice on what might be causing this issue would be appreciated!