Solution to the Stats Preview Card Component (Not yet responsive)

Solution retrospective
Still having some difficulty overlaying color into the image.
I found a solution by adding a pseudo-class ::after
into the div where my image is, however, I am not sure if this is the most effective and easiest way to do it. Would like to know if there is any better way to streamline overlaying color into the image.
Thanks!
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on h415232's solution.
Join 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