Design comparison
SolutionDesign
Solution retrospective
if you have any suggestions on what to improve in the code, feel free to comment!
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, great work on this one. Layout in desktop looks great, it is responsive and the mobile state looks really great as well.
Some suggestions would be:
- Avoid using
height: 100vh
on a large container like thebody
tag as this limits the element's height based on the remaining screen's height. Instead usemin-height: 100vh
, this takes full height but lets the element expand if needed. - Also don't add
width: 100vw
as this adds an extra horizontal scroll since this doesn't account the scrollbar's size. - A
padding
would be nice on the top and bottom of thebody
to prevent layout touching ceiling and flooring. - I wouldn't use
h2
on the text after theh1
since it looks like a regular text to me, I would usep
tag. - When wrapping a text-content do not just use
strong
orspan
to wrap it, use meaningful element like ap
tag if it just a regular text or heading tag if it is an heading.
Just those ones, again, great work on this one.
0 - Avoid using
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