Design comparison
Solution retrospective
Hi guys i have a problem with social media icons i couldn't center them please help. thank you.
Community feedback
- @fidellimPosted about 3 years ago
Hi Moutez,
A simple quick fix to your question is by adding this code:
.social-links a { display: flex; align-items: center; }
Hope it helps :)
Marked as helpful0 - @GauravkumarioPosted about 3 years ago
hey bro you need to change display value from inline block to flex in CSS file
'''.social-links a{ display: flex; }'''
Marked as helpful0 - @dwhensonPosted about 3 years ago
Hey @Mazou2K21 nice work on this one! š
In order to put the social media icons in the center, try setting the parent as either display
grid
orflex
. Both these settings are good for centering small things like this too.I would suggest setting
display:grid
and 'place-items: center on thea
attribute. I think that should make it centered.My only other suggestion is to do a little google on the differences between a link and a button element. I suspect that you need a link in this case? (Despite it appearing like a button).
Lovely job! And keep up the good work!! š
Cheers š
Dave
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord