Struggling to create a Bootstrap 5 page and facing challenges with vertically aligning text in divs? Here's the code snippet causing problems:
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="90f2ffffe4e3e4e2f1e0d0a5bea0bea2">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<div class="container">
<br>
<div class="row">
<div class="col" style="background-color:#cbedca;">
<div style="margin-top:80px;margin-bottom:80px;">
<center>
<h3>Ocean pollution is a massive environmental crisis.</h3>
There is currently over 5.25 trillion macro and micro pieces of plastic in our oceans. Plastic bottles are a single-use plastic, meaning they are a product designed to be used only once and then discarded. CODi is committed to giving back to the environment
in any way we can.
</center>
</div>
</div>
</div>
<div class="row">
<div class="col-6">
<img src="https://cdn.shopify.com/s/files/1/0615/5403/2853/files/CODi_TerraPlasticBottles.png?v=1664543910" style="width:100%;">
</div>
<div class="col" style="background-color:#d9f4ff;line-height:1em;">
<div>
<center>
Made from
<br><b style="font-size:3em;line-height:1em">30</b>
<br><b>OCEAN-BOUND
<br>PLASTIC BOTTLES</b>
</center>
</div>
</div>
</div>
<div class="row">
<div class="col-6">
<img src="https://cdn.shopify.com/s/files/1/0615/5403/2853/files/CODi_PlasticBottles1.png?v=1664550375" style="width:100%">
</div>
<div class="col">
<h4>Every day around 8 million pieces of plastic makes their way into our oceans.</h4>
Once in the ocean, a single-use bottle moves with the currents of the wind and the ocean and can take <b>hundreds of years to break down into microplastic</b>.
</div>
</div>
</div>
Tried using the "align-middle" class on col divs but no success yet? Perhaps it's just a simple overlook or missing link that needs fixing.