so I am trying to put three images side by side using bootstrap row and col-s-4. It works when using desktop size but when it comes to mobile and tablet size the images are stacked vertical instead?
Here is my html code:
<div class="container-fluid">
<div class="row" id="order">
<div class="col-s-4">
<img class="img-responsive" src="order/order1.jpg">
</div>
<div class="col-s-4">
<img class="img-responsive" src="order/order2.jpg">
</div>
<div class="col-s-4">
<img class="img-responsive" src="order/order3.jpg">
</div>
</div>
</div>
Here is my css code:
#order{
align-items: center;
text-align: center;
}
#order img{
object-fit: contain;
}
#order label{
font-family: 'Jellee', sans-serif;
font-weight: 200;
color: black;
text-align: center;
padding: 0%;
}
I tried minimizing the image, using max-width: 100%, and width: calc(100%/3); but nothing seems to work just minimizes the image but it is still stacked horizontal
mobile version, image are all vertically stacked
but I want it to be like the desktop version wherein all images are horizontal