After implementing various media queries
, I've managed to create an image grid using Bootstrap 4+
that looks great on specific devices and layouts. Here's the reference code:
.cmd-three-img-container {
position: relative;
margin-bottom: 30px;
height: 320px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
@media (max-width: 768px) {
.cmd-three-img-container {
height: 200px;
}
}
/* Additional CSS properties here */
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet" />
<div class="cmd-three-imggrid-area">
/* Image grid code here */
</div>
My goal is to maintain the proportionality of the Three Image grid across different devices such as desktop, mobile, and iPad. The total grid size should be fluid and adjust smoothly based on the device layout. Thank you for your help in advance!