How can I maintain a fixed 40 pixel gap between columns in flexbox without it increasing as the screen width widens?
(I apologize for the brevity of this description, but there are no additional details to provide at this time)
.browser-box {
max-width: 270px;
margin: 0 auto 40px;
box-shadow: rgba(149, 157, 165, 0.2) 2px 8px 12px,
rgba(149, 157, 165, 0.2) -2px 0 6px;
/* box-shadow: rgba(149, 157, 165, 0.2) 0 8px 12px; */
border-radius: 8px;
}
.browser-box h3 {
margin-bottom: 10px;
font-size: 20px;
font-weight: 500;
}
.browser-box p {
margin-bottom: 35px;
font-size: 15px;
}
.btn-browser {
width: 75%;
margin-bottom: 25px;
margin-right: 0;
}
.browsers-container {
display: flex;
justify-content: center;
column-gap: 40px;
margin-inline: auto;
}
.browser-box:nth-of-type(2) {
transform: translateY(40px);
}
.browser-box:nth-of-type(3) {
transform: translateY(80px);
}
<div class="browsers-container">
<div class="browser-box">
<h3>Add to Chrome</h3>
<p>Minimum version 62</p>
<button class="btn-browser">Add & Install Extension</button>
</div>
<div class="browser-box">
<h3>Add to Chrome</h3>
<p>Minimum version 62</p>
<button class="btn-browser">Add & Install Extension</button>
</div>
<div class="browser-box">
<h3>Add to Chrome</h3>
<p>Minimum version 62</p>
<button class="btn-browser">Add & Install Extension</button>
</div>
</div>