I’m trying to make 3 fa icons to be side to side and I don’t know how to do it.
My code:
<div class="footer">
<p style="text-align: center;">Social media:</p>
<ul style="list-style: none">
<li><a href="https://www.youtube.com/channel/UCxEM75DEH_ncOts-JnVpZxg"><i class="fa fa-youtube justify-content-center" style="font-size: 36px;"></i></a></li>
<li><a href="https://instagram.com/l_justak_l?igshid=ZDdkNTZiNTM="><i class="fa fa-instagram justify-content-center" style="font-size: 36px"></i></a></li>
<li><a href=""><i class="fa fa-twitter justify-content-center" style="font-size: 36px"></i></a></li>
</ul>
<p style="text-align: center;">Copyright ©2023 by </p>
</div>
2
Answers
I see you use Bootstrap. I think i would solve it this way (BS 5.2.3 + FA 6.3.0):
First of all try to use semantic html, I mean instead of a
div
for footer try to use afooter
tag:this snippet will create an unordered list of your icons, for making them side by side you need to add some styles too: