Design comparison
Solution retrospective
Hi there 👋, I’m Henry and this is my Solution for this challenge.
I was able to make use of SASS in this Challenge
Any feedback on how I can improve and reduce unnecessary code will be highly welcomed and appreciated!
Update : Edited The Positioning System
Thank you. :)
Community feedback
- @HassiaiPosted over 1 year ago
Use the colors that were given in the styleguide.md found in the zip folder you downloaded.
There is no need to style .main abd .card__img. Give the body a background-color of light gray.
To center .card on the page using flexbox or grid instead of position: absolute:
- USING FLEXBOX: add min-height:100vh; display: flex; align-items: center: justify-content: center; to the body
body{ min-height: 100vh; display: flex; align-items: center; justify-content: center; }
- USING GRID: Add min-height:100vh; display: grid place-items: center to the body
body{ min-height: 100vh; display: grid; place-items: center; }
Give the img a max-width of 100% for a responsive image and a border-radius.
For a responsive content, replace the width in .card with max-width.
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
1@devhnryPosted over 1 year ago@Hassiai
Thanks for the CommentI did want to implement the GRID System but wasn't sure if I should.
And the colors used where specifically those stated in the style-guide.md.
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