Submitted almost 2 years ago
Responsive solution HTML, CSS and Flexbox
@valentinalopezh98
Design comparison
SolutionDesign
Community feedback
- @VCaramesPosted almost 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
- The “illustration” in this component is purely decorative. ⚠️ Its
alt tag
should be left blank to hide them from assistive technology.
More Info:📚
https://www.w3.org/WAI/tutorials/images/
- The “Cancel Order” was created with the incorrect element ❌. When the user clicks on the button they should directed to a different part of you site. The
anchor tag
will achieve this.
More Info:📚
- NEVER ❌ do this as it creates accessibility issues for users and it is outdated, instead download a
px
torem
/em
converter in your code editor.
html { font-size: 62.5%; }
- To properly center ✅ your content to your page, you will want to add the following to your
body
(this method uses CSS Grid):
body { min-height: 100vh; display: grid; place-content: center; }
More Info: 📚
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding! 🎆🎊🪅
Marked as helpful0@valentinalopezh98Posted almost 2 years ago@vcarames Thanks! Your feedback is very helpful. I will be checking the code
1 - The “illustration” in this component is purely decorative. ⚠️ Its
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