Design comparison
SolutionDesign
Solution retrospective
-
How did you managed the image overlay? Did you use some cool and/or advanced CSS tricks?
-
Did you use SASS as well?
-
How did you properly placed the image inside the card?
-
Is there a way to properly center and resize the card, no matter the screen size, without using the max-width css property?
Community feedback
- @mohamedkhaled4053Posted over 2 years ago
for the overlay, you can just make the container element flex in your case make
nft-image
flex withdisplay: flex
for me, I used the
::before
pseudoelement for the overlayMarked 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