Submitted almost 3 years ago
Stats preview card component - using HTML & CSS
@Nishant-afk
Design comparison
SolutionDesign
Solution retrospective
I have few question would really appreciate answers:
- Regarding the Image and Overlay/background color - I was trying to do it by using background color to img_component & img itself but it was not working, finally i did it by using an empty div inside the component after img.(Is this a correct way?)
- As I have used div for background i cannot seem to be able to get rid of the spacing at the very end of image and the background color as you can see in the page. I tried using display:block and vertical-align:center but they are not working.
Community feedback
- Account deleted
Hey there nice job!
Regarding question number 2, set the image to display: block; and check it out!
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