I am trying to create a bootstrap responsive layout with four center-aligned boxes, each containing an image and text. However, the boxes are not displaying properly and there is no space between them. Please refer to the attached image for reference.
This is what I have tried so far:
<div class="row justify-content-center">
<div class="col-4 colMenu">
<h3>SAMPLE TEXT</h3>
<img src="./assets/img/sample.png" class="menuImg">
</div>
<div class="col-4 colMenu ">
<h3 >SAMPLE TEXT</h3>
<img src="./assets/img/sample.png" class="menuImg">
</div>
<div class="w-100"></div>
<div class="col-4 colMenu ">
<h3>SAMPLE TEXT</h3>
<img src="./assets/img/sample.png" class="menuImg">
</div>
<div class="col-4 colMenu">
<h3 >SAMPLE TEXT</h3>
<img src="./assets/img/sample.png" class="menuImg">
</div>
</div>
.colMenu{
border-style: solid;
border-width: 3px;
border-color: #000000;
}
.menuImg{
height: 40%;
margin-left: auto;
margin-right: auto;
display: block;
}