HTML, CSS, CSS Variables and Flexbox

Solution retrospective
Any feedback would be appreciated.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @vanzasetia
👋 Hi David!
🎉 Congratulations on finishing this challenge! I have some feedback that will help you improve this solution:
- Accessibility
- All page content should live inside a landmark (
main
,header
,footer
). In this case, you can wrap all the page content withmain
, except the attribution. For your attribution, you can swap thediv
withfooter
. - For any decorative images, each
img
tag should have emptyalt=""
andaria-hidden="true"
attributes to make all web assistive technologies such as screen reader ignore those images. In this case, all images are decorative only. - Use
rem
or sometimesem
unit instead ofpx
. Usingpx
will not allow the users to control the size of the page based on their needs. - Create a custom
:focus-visible
styling to any interactive elements (button
, links,input
,textarea
). This will make the users can navigate this website using keyboard (Tabs
) easily.
- All page content should live inside a landmark (
- Other
- Try to make the website looks closer to the design.
- On mobile view (360px * 640px), the cards have full width. I would recommend adding
padding
on thebody
element to prevent it. - You can use flexbox or grid to make the cards perfectly on the center of the page.
// ⚠ This is what I did, depending on your markup, yours might be different body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
- I would recommend using CSS Resets, like Normalize to make everything looks the same (similar) across browsers.
That's it! 🔥 Keep going and 😉 happy coding!
Marked as helpful - Accessibility
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