Currently working on my portfolio website, but encountered an error. Can someone assist me in making my social icons responsive?
I need the icons to be responsive and aligned horizontally for the mobile version. Here is a visual of the issue with the desktop version: Desktop Version Image
Please help me rectify this problem by guiding me on how to make the social icons responsive. You can view the current state of the icons here: Non-Responsive Social Icons
Here's the code snippet from index.html:
<!-- home -->
<section class="home bd-grid" id="home">
<div class="max-width">
<div class="home-content">
<div class="text-1">Hello, Myself</div>
<div class="text-2">Piyush Shrivastava</div>
<div class="text-3">And I'm a <span class="typing"></span></div>
<a href="#">Download CV</a>
</div>
</div>
<div class="social">
<ul>
<li>
<div class="circle">
<i class="fa fa-facebook-f" aria-hidden="true"></i>
</div>
</li>
<li>
<div class="circle">
<i class="fa fa-instagram" aria-hidden="true"></i>
</div>
</li>
<li>
<div class="circle">
<i class="fa fa-twitter" aria-hidden="true"></i>
</div>
</li>
<li>
<div class="circle">
<i class="fa fa-youtube" aria-hidden="true"></i>
</div>
</li>
</ul>
</div>
</section>
And here's the relevant CSS code from styles.css:
.home{
display: flex;
flex-wrap: wrap;
background: url("/img/banner.jpg") no-repeat center;
height: 100vh;
color: #fff;
min-height: 500px;
background-size: cover;
background-attachment: fixed;
font-family: 'Ubuntu', sans-serif;
}
.home .max-width{
width: 100%;
display: flex;
}
...
@media (max-width: 947px) {
.home .home-content .text-2 {
font-size: 60px;
}
}