@Drougnov
Posted
Hi @caio-rosa, good job on the challenge.
To achieve the purple filter on the image, you can use pseudo-code(after
or before
) on the container
. At first use position relative to the container.:
.container {
position: relative;
z-index: 0;
overflow: hidden;
}
And add after
to the container like this:
.container::after {
position: absolute;
content: "";
width: 100%;
height: 100%;
background: hsla(277, 64%, 40%, 0.6);
top: 0;
left: 0;
}
this should do the trick.
You might wanna work on the accessibility and responsiveness(mobile devices). For further help feel free to comment or view my solution
Anyway, keep up the good work and have a good day : )
Marked as helpful
@caio-rosa
Posted
@Drougnov
Hey, thank you! i didn't know 'after' and 'before' it really helped!