Design comparison
Community feedback
- @HassiaiPosted over 1 year ago
There is no need to give the main a width. To center .card-container on the page using flexbox, add min-height:100vh; display: flex; align-items: center: justify-content: center; to the main
main{ min-height: 100vh; display: flex; align-items: center; justify-content: center; }
Give the background-color of the main to the body.
There is no need to give .card-container a height value rather give . text-container a padding value for all the sides. This will prevent the content from overflowing.
For the color of the image, give the img-container a bacvkground-color of soft violet and give the img a width and height of 100%, mix-blend-mode: multiply, object-fit: cover and opacity: 0.8.
.img-container{ background-color: hsl(); } img{ width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: 0.8; }
Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
0 - @vinumanPosted over 1 year ago
Hello,
Good job completing the project. The design looks impeccable.
-
Instead of using the filter CSS property on the image, you can use the CSS property, mix-blend-mode: multiply; It sets the blending mode for how an element should blend with its background or neighboring elements.
-
Hope this helps. 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