Submitted over 1 year ago
Component made with Flexbox, overlays, custom css props.
@DavidCaffrey
Design comparison
SolutionDesign
Solution retrospective
The overlays on the hover state were a challenge, I don't know if the transition is a bit weird. What do you think? Thank you.
Community feedback
- @HassiaiPosted over 1 year ago
To center .container on the page using flexbox or grid instead of a margin,
- 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; }
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful0@DavidCaffreyPosted over 1 year agoThanks for the advice. I didn't know about place-items. I am just reading the MDN docs now about it. @Hassiai
1
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