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

Social-links-profile using div as blocks

zbuli-t 100

@zbuli-t

Desktop design screenshot for the Social links profile coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

I managed to use nth-child properties. I managed to use hover.

Community feedback

@xXOsielXx

Posted

@zbuli-t Hi there. Congrats for solving the challenge!

I want to give you some suggestions related to the profile container to improve your code...

I guess you want to center your container. For that reason you setted .outer_layer {margin: 30%}. But that is so much margin and, in this case it's not the idea.

Instead of that use a fixed width like:

.outer_layer {
        width: 100% /* for mobile devices */
	max-width: 300px; /* for larger screens */
}

and then...

.outer_layer {
	margin: 0 auto;
}

Also, add a padding to .outer_layer instead of the image:

.outer_layer {
	padding: 32px;
}

You can add a padding to the body too:

body {
	padding: 64px 32px;
}

I hope this helps you. Happy coding!

Marked as helpful

1
zbuli-t 100

@zbuli-t

Posted

Thank you so much for your suggestions! I've been struggling for the margin and the padding a lot. It's so kind of you to give me valuable advice. thank you

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