On larger screens, I have arranged 4 icons in a row, but on smaller screens (less than 768px), I need to display only 2 icons in a row.
This is my current code :
.welcome {
display: flex;
justify-content: space-around;
}
@media (max-width: 768px) {
/* Code for handling small screens goes here */
}
<section class="container text-center">
<h2 id="h2-welcome"><strong>Welcome to our website</strong></h2>
<div class="welcome">
<div class="welcome-content">
<i class="fas fa-life-ring fa-5x"></i>
<p>24/7 Service</p>
</div>
<div class="welcome-content">
<i class="fas fa-tachometer-alt fa-5x"></i>
<p>Fast & Stable</p>
</div>
<div class="welcome-content">
<i class="fas fa-globe-europe fa-5x"></i>
<p>Channels from around the World</p>
</div>
<div class="welcome-content">
<i class="fas fa-user-shield fa-5x"></i>
<p>Secure & Fast</p>
</div>
</div>
</section>