In my design, I have 2 rows with 3 columns each on desktop view:
<div class="row">
<div class="col-md-4">
1
</div>
<div class="col-md-4">
2
</div>
<div class="col-md-4">
3
</div>
</div>
<div class="row">
<div class="col-md-4">
1
</div>
<div class="col-md-4">
2
</div>
<div class="col-md-4">
3
</div>
</div>
I would like these columns to automatically split into 3 rows of 2 columns on mobile devices:
<div class="row">
<div class="col-xs-6">
1
</div>
<div class="col-xs-6">
2
</div>
</div>
<div class="row">
<div class="col-xs-6">
3
</div>
<div class="col-xs-6">
1
</div>
</div>
<div class="row">
<div class="col-xs-6">
2
</div>
<div class="col-xs-6">
3
</div>
</div>
Is there a built-in method in Bootstrap 4 to achieve this layout or should I rely solely on CSS? I'd prefer not to use JavaScript due to the complexity of rows and columns with different IDs and classes. Thank you!