Design comparison
Community feedback
- @HassiaiPosted almost 2 years ago
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 helpful1@yassineboukhlaPosted almost 2 years ago@Hassiai Hi, Thank you for the review, especially the part of the color, it's a great way to do it.
0 - @abdmudPosted almost 2 years ago
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 helpful1@yassineboukhlaPosted almost 2 years ago@abdmud Hi, Thank you for the review, will try to do it.
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