Mobile Responsive Stats Preview Component Card using HTML and CSS
Design comparison
Solution retrospective
Looking over the design, I can see that there was probably a better way to go about the card element but bearing in mind that I am a beginner, I think the design came pretty close for first attempt.
One main question I have is around the 3 different statistics. I have quite a substantial amount of spacing between "10k+ and Companies" and I would like to get them a lot closer together. If anyone has a suggestion for that, would be awesome.
Thanks in advance.
Community feedback
- @dewslysePosted over 3 years ago
Hello! Nice job on your first attempt.
A default margin of about 20px has been applied to your
h2
. You could reset this my addingmargin-bottom: 0
to theh2
. Alternatively, you could remove all default margins and padding for page objects with the code below:* { margin: 0; padding: 0; }
Marked as helpful1
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