Used Html and Css to build this website. Pls do give suggestion.
Design comparison
Solution retrospective
I did not get the way to add the bluish color on the image. Pls do suggest ways to add that.
Community feedback
- @cholis04Posted almost 3 years ago
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 ✌️
5@sirargillPosted almost 3 years ago@cholis04 Thank you for the suggestion. Will make sure to implement it.
0 - @FazyyyPosted over 2 years ago
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.
0@sirargillPosted over 2 years ago@Fazyyy thank you for the suggestions, will learn from it
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