I am currently attempting to display these 4 images in two rows when viewed on mobile, with two images per row. However, on desktop, I want them centered in one row only.
Unfortunately, I am having trouble centering the bottom two images on mobile without affecting the desktop view.
Below is the code I have been working with:
<div class="col-12 col-sm-12">
<div class="row">
<div class="col-1 col-sm-1"></div>
<div class="col-5 col-sm-2 aboutMid aboutMid1">
<img src="assets/about/about1.jpg">
</div>
<div class="col-5 col-sm-2 aboutMid aboutMid1">
<img src="assets/about/about2.jpg">
</div>
<div class="col-5 col-sm-2 aboutMid aboutMid1">
<img src="assets/about/about3.jpg">
</div>
<div class="col-5 col-sm-2 aboutMid aboutMid1">
<img src="assets/about/about4.jpg">
</div>
</div>
</div>
Here is a snapshot of what is happening: picture
Appreciate any help or suggestions. Thank you!