I'm currently using bootstrap 5, and I need to display 2 columns and 2 rows on my mobile device, but it's only showing 1 row.
I have two PSDs for this layout in desktop mode:
https://i.sstatic.net/HWG6e.png
And for mobile mode:
https://i.sstatic.net/cEz7E.png
My goal with Bootstrap 5 is to have 6 columns in desktop mode and 2 columns in mobile mode. In the mobile view (which consists of 2 columns), I also want to implement horizontal scrolling for additional content.
<div class="container">
<div class="row" id="content">
<div class="col-lg-2 col-6 mb-3 text-center">
<i class="fa-solid fa-circle"></i>
<h5>General</h5>
</div>
<div class="col-lg-2 col-6 mb-3 text-center">
<i class="fa-solid fa-circle"></i>
<h5>Dental</h5>
</div>
<div class="col-lg-2 col-6 mb-3 text-center">
<i class="fa-solid fa-circle"></i>
<h5>Radiology</h5>
</div>
<div class="col-lg-2 col-6 mb-3 text-center">
<i class="fa-solid fa-circle"></i>
<h5>Neurology</h5>
</div>
<div class="col-lg-2 col-6 mb-3 text-center">
<i class="fa-solid fa-circle"></i>
<h5>Ophthalmology</h5>
</div>
<div class="col-lg-2 col-6 mb-3 text-center">
<i class="fa-solid fa-circle"></i>
<h5>Nutrition</h5>
</div>
<div class="col-lg-2 col-6 mb-3 text-center">
<i class="fa-solid fa-circle"></i>
<h5>Pediatrics</h5>
</div>
<div class="col-lg-2 col-6 mb-3 text-center">
<i class="fa-solid fa-circle"></i>
<h5>Neurology</h5>
</div>
<div class="col-lg-2 col-6 mb-3 text-center">
<i class="fa-solid fa-circle"></i>
<h5>Radiology</h5>
</div>
<div class="col-lg-2 col-6 mb-3 text-center">
<i class="fa-solid fa-circle"></i>
<h5>Children's Health</h5>
</div>
<div class="col-lg-2 col-6 mb-3 text-center">
<i class="fa-solid fa-circle"></i>
<h5>Neurology</h5>
</div>
<div class="col-lg-2 col-6 mb-3 text-center">
<i class="fa-solid fa-circle"></i>
<h5>All Specialties</h5>
</div>
</div>
</div>