Used Html and Css to build this website. Pls do give suggestion.

Solution retrospective
I did not get the way to add the bluish color on the image. Pls do suggest ways to add that.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @cholis04
Hi Ujjwal Singh 👋,
Adding color to an image can be done by adding a background color to the
parent element
, then mix-blend mode on theimage element
in it. And reduce theopacity
to make it look the same as the design. I think it works pretty well.Here is the code:
.card-thumbnail { background-color: hsl(277, 64%, 61%); } .card-thumbnail > img { mix-blend-mode: multiply; filter: opacity(75%); }
Hope this helps ✌️
- @Fazyyy
Good effort but I think you overlook a few of the smaller details here. In the design the right hand image takes up exactly half of the width, whereas in your design it's more like a third or so? Additionally the spacing between some of your elements is a bit off. If you have an image editing tool it can be handy to check the distances between elements. For example, the gap between the statistics and the paragraph above them.
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