Responsive social links profile using flex box via tailwindcss
Design comparison
Solution retrospective
I'm proud of the responsive solution I came up with to grow the padding around the links between mobile and desktop screens.
What challenges did you encounter, and how did you overcome them?I used max dimensions for vertical and horizontal dimensions allowing the padding to grow responsively.
What specific areas of your project would you like help with?I wanted to center the card div while keeping the attribution div below it in order to get the side by side solution image to align correctly. Could not seem to work this out using tailwind. Suggestions are welcome!
Community feedback
- @danielmrz-devPosted 5 months ago
Hey there!
Congrats on finishing the challenge! ✅
Your solution looks awesome!
📌 It's a good idea to use semantic HTML elements like
<ul>
and<li>
for lists. This makes your code more accessible, maintainable, and meaningful.Here's an example of 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>
Using
<ul>
and<li>
makes your content structure clearer, which is better for screen readers and search engines. Plus, it follows best practices for HTML.Hope this helps!
Keep up the great work!
Marked as helpful0 - @DarkstarXDDPosted 5 months ago
- You are doing the vertical centering already on the
<main>
class. Do that same thing on the<body>
and your card will be centered. - Give some padding to the card so the content doesn't hit the top and bottom of the card.
- The above two issues doesn't seem to be appear on the screenshot but somehow is still present in the live site.
1@chelsea-herePosted 5 months agoThanks, I was futzing with it last night after submitting the solution. I’ll double check the livesite. @DarkstarXDD
0 - You are doing the vertical centering already on the
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