.card {
height: 600px;
width: 800px;
background-color: darkseagreen;
padding: 20px;
}
.box1 {
background-color: floralwhite;
}
.box2 {
background-color: rgb(238, 185, 80);
}
.box3 {
background-color: indianred;
}
.box4 {
background-color: rgb(137, 137, 235);
}
.box5 {
background-color: rosybrown;
}
.box6 {
background-color: sienna;
}
<!-- Bootstrap-4 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="92f0fdfde6e1e6e0f3e2d2a6bca7bca1">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<!-- Body -->
<div class="container">
<div class="row card mx-auto">
<div class=" col-4 box box1">BOX1</div>
<div class=" col-4 box box2">BOX2</div>
<div class=" col-4 box box3">BOX3</div>
<div class=" col box box4">BOX4</div>
<div class=" col box box5">BOX5</div>
<div class=" col box box6">BOX6</div>
</div>
</div>
I have been attempting to utilize the bootstrap grid system for creating a grid layout. However, I am facing an issue where the columns are stacking vertically instead of horizontally. My goal is to achieve a grid layout similar to the one shown in this picture: