Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

huddle-landing-page using HTML and CSS

boukikaz moutezā€¢ 310

@Mazou2K21


Design comparison


SolutionDesign

Solution retrospective


Hi guys i have a problem with social media icons i couldn't center them please help. thank you.

Community feedback

Fidel Limā€¢ 2,775

@fidellim

Posted

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 helpful

0
Gaurav Kumarā€¢ 570

@Gauravkumario

Posted

hey bro you need to change display value from inline block to flex in CSS file

'''.social-links a{ display: flex; }'''

Marked as helpful

0
P
Daveā€¢ 5,245

@dwhenson

Posted

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 or flex. Both these settings are good for centering small things like this too.

I would suggest setting display:grid and 'place-items: center on the a 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 helpful

0
boukikaz moutezā€¢ 310

@Mazou2K21

Posted

thanks guys i fixed it.

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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