Design comparison
SolutionDesign
Solution retrospective
Hello my name is JoΓ£o Vitor and i have completed another frontend mentor challenge.π
How can i improve and reduce unnecessary code? Leave your comment. π
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.
.
CSS π¨:
- Use
min-height: 100vh
instead ofheight: 100vh;
, to properly center the component both horizontally and vertically
- Setting the
height
to100vh
may result in the component being cut off on smaller screens, such as a mobile phone in landscape orientation
min-height
says that the minimum height is some value but that the element can continue to grow past that defined height if needed (like the content inside makes it taller or whatever).
.
I hope you find this helpful π Above all, the solution you submitted is great !
Happy coding!
Marked as helpful0 - @rebcopPosted over 1 year ago
Hi! Looking good!
Just a few things:
- Update the "README-template" file. Remove the old "README" file and rename "README-template" to "README"
- Looks like you did get it be responsive. I can see it on the mobile version through Developer Tools and when making the window width smaller so not sure what you're asking. Though in the mobile version, the component is not covering the full width.
- Stay consistent with one type of unit. I've been informed typically em/rem is best instead of px which is a fixed unit
Marked as helpful0
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