My task is to showcase 8 images using Bootstrap's grid system. Here is the code I have:
<div class="row">
<div class="col-sm-3">
<img class="img-responsive" src="img/img1.png">
</div>
<div class="col-sm-3">
<img class="img-responsive" src="img/img1.png">
</div>
<div class="col-sm-3">
<img class="img-responsive" src="img/img1.png">
</div>
<div class="col-sm-3">
<img class="img-responsive" src="img/img1.png">
</div>
</div>
<div class="row">
<div class="col-sm-3">
<img class="img-responsive" src="img/img1.png">
</div>
<div class="col-sm-3">
<img class="img-responsive" src="img/img1.png">
</div>
<div class="col-sm-3">
<img class="img-responsive" src="img/img1.png">
</div>
<div class="col-sm-3">
<img class="img-responsive" src="img/img1.png">
</div>
</div>
On larger screens, it appears as follows ("X" represents an image):
XXXX
XXXX
and on smaller screens, like this:
X
X
X
X
X
X
X
X
I aim to achieve:
Displaying on larger screens:
XXXX
XXXX
and displaying on smaller screens:
XX
XX
XX
XX
Is there anyone who knows how to accomplish this?