Design comparison
Solution retrospective
Hello! This is really very basic challenge anyone with basic HTML and CSS knowledge can do. Very simple and easy I really enjoyed doing this challenge This is recommended challenge for absolute beginners/newbies.
Community feedback
- @besttlookkPosted over 2 years ago
Hi, Tho its simple still people stuggle to do it. If you look the solution of others they look different that what was in the design. Yours look nice . My only suggestion would be to get rid of srcolling and to center the box w.r.t screen.
Good Luck #happyCoding
0@priyankavasam7Posted over 2 years ago@besttlookk Hello, Thanks! Yea I observed that scrolling thing. I have tired to get rid of it but I'm just unable to do it I have tried setting viewport also I don't really understand what's wrong with it. I could also see some accessibility issues with my code about landmark, even when everything is right. These two things are really bothering me a lot. It would be really very helpful if you could help me in figuring this issue out 😊
0@besttlookkPosted over 2 years ago@priyankavasam7 Have you tried overflow:hidden ?
body{ min-height:100vh; overflow:hidden; }
I usually do "overflow-x:hidden" . But here we even dont want scrolling in y-direction. so "overflow:hidden"
Do let me know if it worked(it should) or not.
Tho i am not an expert but I will look into your accessibility issue.
;)
Marked as helpful0@besttlookkPosted over 2 years ago@priyankavasam7 About accessibility issue: Try using semantic HTML element . Like you are making a header. Rather than using a <div> to wrap the content use <header> tag. same goes for <footer>.
If there are nav links. Wrap them in <nav>
Most importantly(and i think it applies to your solution) wrap the main content inside <main></main>
If there are different sections in your page. divide them in <section> tag.
here is the link if you wanna know more: https://www.w3schools.com/html/html5_semantic_elements.asp
Good luck, #happyCoding
Marked as helpful0@priyankavasam7Posted over 2 years ago@besttlookk Thankyou! It is working, I will implement this from now on :))
0@besttlookkPosted over 2 years ago@priyankavasam7 Keep coding and keep learning. Happy to help. :)
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