Design comparison
SolutionDesign
Solution retrospective
Hi, everyone. Thanks for reviewing my code. I would be really happy to receive some feedback, greetings!
Community feedback
- @ApplePieGiraffePosted over 3 years ago
Hey there, Anderson Vallejo! 👋
Well done on this challenge! 👍
I suggest,
- Using flexbox (rather than margin) to center the card component in the viewport (so that it remains in the center on all screen sizes). You might need to add
min-height: 100vh
to thebody
in order to make sure that it fills up the entire area of the screen and gives you enough space inside with which to center the card. - Wrapping the social media icons in the popup in anchor tags (since they seem like links that would take the user to their respective social media site when clicked).
- Putting the script tag in the head of the document and add the attribute
defer
to it. That way, your HTML and JS will be loaded at the same time but the JS will only run until after the HTML is finished loading (meaning the functionality of your site should remain the same, but the JS will load a little faster) Read more about this and other ways of adding script tags to HTML documents here.
Hope those few tips help. 🙂
Keep coding (and happy coding, too)! 😁
Marked as helpful1 - Using flexbox (rather than margin) to center the card component in the viewport (so that it remains in the center on all screen sizes). You might need to add
- @palgrammingPosted over 3 years ago
look at your challenge in a browser as wide as you can make it. Now slowly make the browser narrow and watch how all of your elements change. Do this with you social menu popup open and closed and then when you see something out of place or responding in a way you do not intend then work to fix the things you see one at a time
0
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