Design comparison
Solution retrospective
I want to learn from my mistakes. Can you please be an initater for this learning process by correcting me ?
Community feedback
- @dtp27Posted over 2 years ago
Hi Pravallika, welcome to Frontend Mentor!
Great job completed your first challenge! A couple key pointers:
- First thing I would do (similar to what Faizan said) is to set the body to the full view height with
min-heigh: 100vh;
. The reason to do it as a minimum is that you want users to be able to still scroll when there's more content (so think of it as a best practice). The other reason is that this allows for a much easier layout of the page, which is my next suggestion. - Along with setting the minimum height of the body, I highly recommend using CSS Flexbox to layout the QR component. You can accomplish this in the body with the following properties:
display: flex; justify-content: center; align-items: center;
Doing this in the body will essentially center the child block-level elements, in this case the
.full-container
class. This removes the needs for margins when centering, and will make for a responsive design.Let me know if you have any questions, thanks!
Dan
0@Pravallika1519Posted over 2 years ago@dtp27, I updated the changes mentioned by you. Thanks for guiding me. As I am a beginner, it really helped me.
1 - First thing I would do (similar to what Faizan said) is to set the body to the full view height with
- @afaiz-spacePosted over 2 years ago
Hey @Pravallika1519, congratulation on completing the challenges.
- Remove
width: 1440px; width: 375px;
and Replaceheight: 660px;
withmin-height:100vh
in the .full class.
0@Pravallika1519Posted over 2 years ago@afaiz-space, I updated the changes mentioned by you. Thanks for guiding me. As I am a beginner, it really helped me.
0 - Remove
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