My images on mobile have too much space between them: mobile version They appear fine in Dev Tools: dev tools version
This is my HTML:
<div class="container-fluid">
<!-- <br> -->
<div class="row">
<img class="col-sm-6 col-md-4" src="digart/fire_cryinggirl.png" alt="girl crying underneath fire">
<img class="col-sm-6 col-md-4" src="digart/ko_munyeong.png" alt="chibi-style ko munyeong">
<!-- mindprison hidden on small-->
<img class="col-sm-6 col-md-4 d-sm-none d-md-block" src="digart/mind_prison.png" alt="brain in a prison">
</div>
</div>
This is the CSS I am using:
img {
object-fit: contain;
margin-bottom: 5vh;
}
I have attempted to fix it with a media query by adjusting the margin-bottom, but the mobile version remains unchanged.