My row is dynamically filled with X items contained in a col-3 class, depending on the screen size.
Is it possible to easily style only the column that will appear on the left during screen resizing?
For example:
lg
screen:
https://i.sstatic.net/JSTpL.png
md
screen:
https://i.sstatic.net/c64Wt.png
.box{
border: 1px solid blue;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="row">
<div class="col-6 col-sm-3 col-md-2 col-lg-1">
<div class="box">Box 1</div>
</div>
<div class="col-6 col-sm-3 col-md-2 col-lg-1">
<div class="box">Box 2</div>
</div>
<div class="col-6 col-sm-3 col-md-2 col-lg-1">
<div class="box">Box 3</div>
</div>
<div class="col-6 col-sm-3 col-md-2 col-lg-1">
<div class="box">Box 4</div>
</div>
<div class="col-6 col-sm-3 col-md-2 col-lg-1">
<div class="box">Box 5</div>
</div>
<div class="col-6 col-sm-3 col-md-2 col-lg-1">
<div class="box">Box 6</div>
</div>
<div class="col-6 col-sm-3 col-md-2 col-lg-1">
<div class="box">Box 7</div>
</div>
<div class="col-6 col-sm-3 col-md-2 col-lg-1">
<div class="box">Box 8</div>
</div>
<div class="col-6 col-sm-3 col-md-2 col-lg-1">
<div class="box">Box 9</div>
</div>
</div>
</div>