Design comparison
Solution retrospective
Please feel free to leave a comment below. Thanks~
Community feedback
- @correlucasPosted over 2 years ago
πΎHello CY CHAN, congratulations for your new solution!
You've a great solution but there are some aspects to fix. For example the container is not yet responsive and also the image, you can have a quick fix for that replacing the container size with
max-width: 1110px
and replacing allwidth
inside the css code withmax-width: 100%
to make the container and items responsive.Here's some tips to improve your code:
To make your image fully responsive add
display: block
andmax-width: 100%
andobject-fit: cover
to make the image auto-crop when resizing inside the column:img { display: block; object-fit: cover; max-width: 100%; }
To add the exact same purple overlay effect for the image, matching the design files you can use,
filter
ormix-blend-mode
. See the code belowimg { mix-blend-mode: multiply; opacity: 75%;}
Here's my solution for this challenge if you wants to see how I build it: https://www.frontendmentor.io/solutions/stats-preview-card-vanilla-css-custom-design-text-animation-RfGBFlMpwK
π I hope this helps you and happy coding!
1
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