First submission, needs work

Solution retrospective
I could not figure out how to do the purple overlay on the images. I also really struggled with the layouts, particularly of the stats.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Andrii-Rohov
Hi there, you should try change hdref of link from /styles/style.css to ./style.css and it will aply css
Marked as helpful - @vanzasetia
👋Hi Steven Parker! My name is Vanza!
In my opinion, the best way to get the purple overlay is using
background-blend-mode
, to do that you need to do a couple things:- First make sure you do what Amon have said.
- Second you can create an empty
div
inside the card. - Next, you can try to write this on your CSS:
.card div { background: url('./images/image-header-mobile.jpg') no-repeat center center; background-color: hsl(277, 64%, 61%); background-blend-mode: multiply; background-size: cover; }
That's it! Hopefully this solve your problem! And don't forget to add images on your GitHub repository.
Happy Coding!
Marked as helpful - @A-amon
You might wanna recheck your files linking, specifically the css, favicon and images. There are no images in your repo and removing /styles/ from /styles/style.css will import the css file successfully.
Marked as helpful - @M-Kgobe
For the stats use a display:flex, flex-direction:column, justify-content:space-between.
The image overlay, wrap your images in a div overlay and apply colors, object-fit border-radius.
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