Design comparison
Community feedback
- @correlucasPosted over 2 years ago
👾Hello Michał, congratulations for your solution!
I've checked your code and you did almost everything, you've missed only the component vertical alignment and the overlay effect on the image with the proper color.
To fix the alignment you need to add one more property inside the body:
body { align-items: center; }
And for the overlay effect you need to add to the img:
img { mix-blend-mode: multiply; opacity: 0.7; }
Note that for the body there's no need you set
min-width: 1440px;
you've to set insteadmax-width: 950px;
to the <main> to indicate how much this container can grows.Hope it helps and happy coding!
Marked as helpful0@xXkosziarzXxPosted over 2 years ago@correlucas hi Lucas I would like to thank you for your help I checked all your hints and I have comments on them
first to the <body> there was what you wanted to add.
second, to mix-blend-mode I didn't know the options. it gave a very nice effect thanks you I learned something new but you wanted to add to the wrong class and it did not work because the color is bg and the color is on top so .img do not have opacity only .bg
the last tip works thanks again
1
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