Design comparison
Solution retrospective
Hey guys I just completed my 3rd project. Please feel free to check it and send your feedback. Thanks
Community feedback
- @NehalSahu8055Posted 12 months ago
Hello Coder 👋.
Congratulations on successfully completing the challenge! 🎉
Few suggestions regarding design.
- Don't use position for centering the card as it will not
dynamically center
the card remove this and use either flex or grid for the same
.container { /* position: relative; */ /* top: 50%; */ /* left: 50%; */ /* transform: translate(-40%,40%); */ }
- To
properly center the card
- USING FLEXBOX
body{ display: flex; justify-content: center; align-items: center; min-height: 100vh; ... }
- Use Semantics for the proper design of your code.
<body> <main>... main content goes here ...</main> <footer>... .attribution div goes here ... </footer> </body>
- It would be better if you use source media for switching to screen sizes(mobile or desktop) for image.
<picture> <source media="(min-width:800px)" srcset="yourimage.jpg"> <img src="yourimage.jpg" alt="description"> </picture>
-
For
non-decorative images
give meaningful and descriptive alt likealt= "Gabrielle Chanel Perfume bottle surrounded by leaves."
. -
If you want to dive into
accessibility
for this project check this link
I hope you find this helpful.
Happy coding😄
Marked as helpful0@kzamani44Posted 12 months agoThanks so much @NehalSahu8055 I'll work on them. I really appreciate your feedback.
1@kzamani44Posted 12 months agoHello @NehalSahu8055,
I have reviewed my code and made the necessary changes you highlighted.
Any ideas on how to resolve landmark issues?
I understand the role of Landmarks and I refactored all my previous code for past solutions and the warning and error reports were cleared but I just cant seem to fix it for this challenge.
0@NehalSahu8055Posted 12 months ago<body> <main>... main content goes here ...</main> </body>
Move you main section inside main
Hope it helps
0 - Don't use position for centering the card as it will not
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