Stats Preview Card Component

Please log in to post a comment
Log in with GitHubCommunity feedback
- @Hassiai
To center .stats on the page, add min-height:100vh; display: flex; align-items: center: justify-content: center; or min-height:100vh; display: grid place-items: center to the body.
Use rem or em as unit for the padding, margin, width and preferably rem for the font-size for more on CSS units Click here
For the color of the image, give .stats-img a background-color of soft violet and add object-fit: cover; mix-blend-mode: multiply; and opacity: 0.8 to .stats-image
.stats-img{ background-color: hsl(); } .stats-image{ width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: 0.8; }
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful - @abdmud
Nice work! it looks good - small suggestion the component is a little high on the page. You can use 'align-items' rule or margin to centre vertically.
Marked as helpful
Join 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