Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 2 months ago

Social Links Profile Pseudo Class and Interactive Screensize

wxyzz22•240
@wxyzz22
A solution to the Social links profile challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

I learned about "stack" design in CSS.

I also learned to use rem more when working with font sizes. This allows the user to be able to adjust their screen font sizes according to their needs.

I have more experience working with margin in CSS. Understanding default margins applied through "inspect"/"devtools" and then resolve the margins respectively.

I learned about using @media to make CSS design more adaptive to user screensize.

I also learned about styling the pseudo classes:

  • keyboard traverse through links <a>; while <a> usually immediately wraps the text, the focused/hover state should usually style the wrapper of <a> -- thus one can use focus-wiithin
  • a pseudo class can be think of a class, and so we can style children of a pseudo clas as well (e.g., style the <a> element inside the pseudo class li:hover)

Finally, I can view and style the design more readily in terms of groups of elements (e.g., the design at first looks like 5 groups of elements, but are actually 4 groups of elements).

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

I wanted to add <a> tag to wrap around the list items. However, the focus state automatically focuses <a> instead of the <li> items. After some searches, I learned about focus-within pseudo state which solved my problem.

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

I think I still don't have a systematic way to go about styling CSS. I usually start from the outer most element and then go inside each small element. Is there a better system out there? Welcome any suggestions.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on wxyzz22's solution.

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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License