Submitted over 3 years ago
Responsive Statistics Preview Card using HTML & CSS Only
@asifm37
Design comparison
SolutionDesign
Solution retrospective
In Chrome the Mobile version has a minor gap between the image card and the text card. I couldn't figure out the cause. Any recommendation will be appreciated.
Community feedback
- @Smita-14Posted over 3 years ago
Hey Asif! The reason is that the image is an inline element and properties like font size and line heights can affect it causing it to have little space (padding) beneath it. Set the
display: block;
to the image element and the issue will be fixed.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