Design comparison
Solution retrospective
- Can you give me a feedback on my challenge in order to improve myself?
- Do you have any advice to give me?
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 📐:
- Use
min-height: 100vh
for.container
instead ofheight: 900px
. Setting theheight: 900px
may result in the component being cut off on smaller screens.
- For example; if we set
height: 900px
then the.container
will have900px
height no matter what. Even if the content spans more than900px
of viewport.
- But if we set
min-height: 100vh
then the.container
will start at100vh
, if the content pushes the.container
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 - @josh76543210Posted over 1 year ago
Hello @Elouka972,
Great job on your solution. Looks good!
One thing that I think would make your page even better is to remove
height: 900px;
on the container and replace it withmin-height: 100vh;
. The min-height will help center the card and the removal of the fixed height will make the page more responsive and prevent large empty spaces from appearing above and below the card on smaller screens.Keep up the good work and happy coding!
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