Design comparison
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there π. Congratulations on successfully completing the challenge! π
- I have other recommendations regarding your code that I believe will be of great interest to you.
COMPONENT MEASUREMENTS π:
- The
width: 100vw
property for.main
element is not necessary. becausediv
is a block level element which will take the full width of the page by default.
- Use
min-height: 100vh
for.main
instead ofheight: 100vh
. Setting theheight: 100vh
may result in the component being cut off on smaller screens.
- For example; if we set
height: 100vh
then the.main
will have100vh
height no matter what. Even if the content spans more than100vh
.
- But if we set
min-height: 100vh
then the.main
will start at100vh
, if the content pushes the.main
beyond100vh
it will continue growing. However if you have content that takes less than100vh
it will still take100vh
in space.
.
I hope you find this helpful π Above all, the solution you submitted is great !
Happy coding!
Marked as helpful1@Tolux001Posted over 1 year ago@0xAbdulKhalid
Thank you for using your precious time to comment on where I needed to adjust I would try and work on this properties and be better at it Much love 001βοΈβ€οΈ
0@Tolux001Posted over 1 year ago@0xAbdulKhalid Please if it possible can you explain why I am getting this accessibility report of document should have one main landmark(I read the article and I don't understand a thing explained) And if you can do a quick explanation on the threeππ Thanks Love 001βοΈπ
0@0xabdulkhaliqPosted over 1 year ago@Tolux001
SUGGESTION π‘:
- The accessibility error report, "Document should have one main landmark" is due to
non-semantic
markup, which causes lacking of landmark for a webpage
- We can fix it by replacing the wrapper
<div>
element with the semantic element<main>
in yourindex.html
file to improve accessibility and organization of your page.
- What is meant by landmark ?, They used to define major sections of your page instead of relying on generic elements like
<div>
or<span>
. They are use to provide a more precise detail of the structure of our webpage to the browser or screen readers
- For example:
- The
<main>
element should include all content directly related to the page's main idea, so there should only be one per page - The
<footer>
typically contains information about the author of the section, copyright data or links to related documents.
- The
.
I hope you find this valuable feedback helpful ! π€
Marked as helpful1@Tolux001Posted over 1 year ago@0xAbdulKhalid Really appreciate you for the time spent in breaking this down sir I really appreciate π I will work towards it. 001βοΈπ
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