Design comparison
Solution retrospective
How to make the image light pink as shown in the design?
Community feedback
- @pikapikamartPosted over 3 years ago
Hey, great work on this one. Layout in desktop is good, though there is a scrollbar at the bottom. Did you do this on a large screen? I am using 1366x768 dimension. Doesn't respond very well and the mobile state is missing.
Some suggestions would be that:
-
On the
body
selector, instead of usingwidth: 1440px
, usemax-width: 1440px
and addwidth: 100%
. This make thebody
have full width but have a max-width as well. Also remove themargin
on thebody
. -
It will be better if you do not use
position: relative
to the elements to position. Instead what you may want to do is that:
2.1. On your
outer-container
you may want to adddisplay: flex
. This will make the two elements inside it, side-by-side.2.2. On the
main-container
and theimg
tag, from both selectors, remove theposition: relative
, thetop
andfloat
and you can remove as well thedisplay: inline-block
on themain-container
.2.3. To achieve the purple effect, like what Comet446 said, using
mix-blend-mode
, but you can't do that here because yourimg
tag does not have a parent. What you can do is that, make a div that will contain theimg
. Then on that div, add the background-color of the purple. Then on theimg
tag, add thebackground-blend-mode: multiply
, you can also tweak the opacity of the img once you done the above methods.-
You can remove the attribution text so that it won't be contained on the container.
-
Add a more descriptive alt text on the
img
.
Lastly, on your part, try as best as you can to make it responsive. Creating breakpoints and making a mobile friendly layout. Good luck on it and still, good job on this^
0 -
- @Comet466Posted over 3 years ago
Hello Manish,
Congrats for completing this challenge ! 🙂
To get closer to the design you could use the mix-blend-mode: multiply that will blend the image with the parent's background, just and the color and you'll be ready to go.
Also consider making it responsive
Overall, well done for the challenge and happy coding !
0
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