I have this code
.sec5-content {
margin: 60px 0;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
color: var(--main-color-all);
row-gap: 60px;
background-color: red;
column-gap: 40px;
justify-content: center;
font-family: 'Poppins', sans-serif;
}
.sec5-content>div {
background-color: aqua;
}
<div class='sec5-content'>
<div>
<h1>1266+</h1>
<h3>Members</h3>
</div>
<div>
<h1>81+</h1>
<h3>Match Completed</h3>
</div>
<div>
<h1>1,20,1800+</h1>
<h3>Revenue</h3>
</div>
</div>
This worked well to make responsive but, when I decrease the screen width then,
Here the lower div (Revenue div) is on the left and i want this in center. I tried justify-content , items and more it didn't work!
Any Solution!?