Solution Jyum

Solution retrospective
how can i put an image together with a base color in the background
Please log in to post a comment
Log in with GitHubCommunity feedback
- @denielden
Hi Thiago, great job!
To put together an image with a base color in the background just put more specific background properties:
background: url("../img/pattern-background-desktop.svg") no-repeat top center; background-size: contain; background-color: #e0e8ff;
For improvide accessibility wrap the content page into
main
tag and aimg
element must have analt
attribute. Is very impoortant !Hope this help ;)
Marked as helpful - @marckesin
I did this:
.container { height: 100vh; background-image: url("../images/pattern-background-desktop.svg"); background-repeat: no-repeat; background-size: contain; position: relative; }
.container::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: hsl(225, 100%, 94%); z-index: -1; }
The container class is my background.
Marked as helpful
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