Design comparison
Solution retrospective
Atento a cualquier sugerencia
Community feedback
- @correlucasPosted about 2 years ago
👾Hello Angel Sarabia, Congratulations on completing this challenge!
Here's some tips for you:
Your component is okay but it's missing the vertical alignment. The best way to do it is by using
flexbox
. First step is to addmin-height: 100vh
to make the body height size becomes 100% of the screen height, this way you make sure that whatever the situation the child element (the container) align the body and then use the flex properties for alignment withdisplay: flex
/align-items: center;
/justify-content: center;
body { min-height: 100vh; Font-size: 15px; font-family: 'Lexend Deca', sans-serif; background-color: var(--Very-dark-blue); display: flex; flex-direction: column; align-items: center; justify-content: center; }
The way you’ve applied the purple color is fine, but if you want the exact color tone of color of the challenge designs, you need to use
mix-blend-mode
to make the color blend between the image and the background-color of the container. See the steps below to apply to theimg
orpicture
selector:img { mix-blend-mode: multiply; opacity: 75%;}
✌️ I hope this helps you 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