Submitted almost 3 years ago
Solution to stats preview card component using Desktop first workflow.
@Abu-Sman
Design comparison
SolutionDesign
Solution retrospective
Could anyone help to check if I'm correct with the image overlay, cause I'm not really sure.
Community feedback
- @denieldenPosted almost 3 years ago
Hi Sulaiman, Great job!
For center the card remove the
margin and max-width
property frommain
tag and change theheight
value with 100vh because Flexbox aligns to the size of the parent container.Viewport Height handles the sizing of an element in relation to the height of the browser window
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