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 CSS Custom Properties, Flexbox

P
Peterā€¢ 60

@peter-hasznos

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 can solve it, and I like solving problems/challenges.

What challenges did you encounter, and how did you overcome them?

At first I could't change the colours of the links when I clicked them, but I realised that if I change the colour of their parent container they will inherit that. :)

What specific areas of your project would you like help with?

I gladly receive any feedback.

Community feedback

Daniel šŸ›øā€¢ 44,230

@danielmrz-dev

Posted

Hello there!

Congrats on completing the challenge! āœ…

Your solution looks great!

šŸ“Œ It's recommended to use semantic HTML elements like <ul> and <li> for creating lists. This ensures that your code is more accessible, maintainable, and semantically meaningful.

Here's and example on how you can refactor your code:

After Refactoring

<ul class="list-container">
    <li><a href="#">Github</a></li>
    <li><a href="#">Frontend Mentor</a></li>
    <li><a href="#">LinkedIn</a></li>
    ...
</ul>

By using <ul> and <li>, you convey the structure of your content more clearly, making it easier for screen readers and search engines to understand. Additionally, it aligns with best practices for HTML semantics.

I hope you find this helpful!

Keep up the excellent work!

0
Alexā€¢ 3,130

@Alex-Archer-I

Posted

Hi!

Good work, congrats with your solution =)

That's cool that you manage to find a way for changing link's color. There are few ways how to make it easier, maybe you'll find them useful.

But at first I suggest you to use the hover effect instead active one. The active only works when user click on the link, and right after the click they'll be redirected to another page and could barely see this styling. While hover works when the user hover cursor on the element.

So, if you want to apply some effect to child element you can use this:

.box:hover a {
    color: black;
}

Or even simpler would be just to style the link itself. You can add padding and border-radius to the a and make it look like a box. Than just add all effects to it directly.

Oh, and one semantic suggestion - there is a list of links, so it's better to use ul with li.

Hope that could help. Good luck with your frontend journey and feel free to ask or comment something if need =)

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