Design comparison
SolutionDesign
Solution retrospective
I worked on the widths that the style-guide gives us, so the page is completly responsive between 375px and 1440px.
I found difficult setting up the violet color to the image. I saw a video how to give it a color by using the property filter
, do you guys know any other way to make it? Feel free to see my code and add some suggestions. Any feedback is welcome :)
Community feedback
- @KTrick01Posted over 2 years ago
Hi! About your question, another way of doing it is with the ::after or ::before pseudo element, like this:
.container__img-section { position: relative; } .container__img-section::after { content: ""; position: absolute; inset: 0; //This is a shorthand for top: 0; bottom: 0; left: 0; right: 0; background-color: (Any color here); }
And then you can change the background color opacity as you see it convenient, hope that it helps you in future challenges!
Marked as helpful0
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