Having an issue with my Bootstrap v5 setup. I have a simple two-column layout with an image and text.
I need the image to display in the second column on large screens and be the first column on medium and large screens.
<div class="container">
<div class="row">
<div class="col-lg-6 order-last">
<img src="https://www.sobharealty.com/lp-properties-in-dubai/images/lp-2021/desk-img-19May2021.jpg" >
</div>
<div class="col-lg-6">
<span>FIRST COL</span>
<span>I want the image to be first on mobile screens. I've tried using the order-X classes of BS v5 but they're not working as expected. I read that order won't change based on CSS for small screens using the orderclass.</span>
</div>
</div>
</div>
Can anyone help me figure out what I'm doing wrong? I've tried using a combination of order-last, order-first, and order-x without success. The order remains the same regardless of screen size.