Responsive Stats Preview Card
Design comparison
Solution retrospective
Hallo 👋, I'm Adit, and here is my solution for the Stats Preview Card challenge.
Features:
- 📱Responsive margin and padding.
- 🗗 Overlay background image.
Built with:
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
Any suggestions?
Drop your comment and share your thoughts! 🙌
Community feedback
- @HassiaiPosted almost 2 years ago
To center the main on the page using flexbox, add min-height:100vh; display: flex; align-items: center: justify-content: center; to the body.
To center .container on the page using flexbox: body{ min-height: 100vh; display: flex; align-items: center; justify-content: center; }
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful0@aaditamanugrahaPosted almost 2 years agoThanks for the insight @Hassiai, suddenly I just found out that there is a bug in the
background-image: url()
and I simply useimg
in HTML instead of CSS for the background image.1@HassiaiPosted almost 2 years ago@aaditamanugraha if you us the img , give the img a mix-blend-mode: multiply and the div a background-color of soft violet
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