Trying to achieve a layout in my bootstrap project with 5 rows that span the full width has been challenging. I'm struggling to grasp how to accomplish this...
Here is the initial code snippet:
<div class="row car-list btn-group" style="border: 1px solid red">
<label class="car-image pr-0 col-lg-2 col-xs-1" style="border: 1px solid red">
<div class="ml-0">
<input type="radio" name="car-rental-class" class="required" id="car-rental-class-local" autocomplete="off" data-class="local" value="local" onclick="getpricing();" required> Local Car<br>(2007 - 2012 Toyota Corolla)
<img src="images/form-cars/1.png" alt="">
</div>
</label>
... (full original code here)
This resulted in the layout shown in the following image:https://i.sstatic.net/8jsbc.png
Second code attempt:
<div class="row car-list btn-group" style="border: 1px solid red">
<label class="car-image pr-0 col-6 col-md-3" style="border: 1px solid red">
<div class="ml-0">
... (more code here) ...
</label>
... (more modified code here) ...
This approach produced the layout visible in the image linked https://i.sstatic.net/FyS8h.png
I aim to have a table structure with 5 equal rows that utilize the entire width of the page. Any recommendations on how to properly implement this?
Edit: The desired format should maintain mobile responsiveness through the use of col-6
as demonstrated in the second example.