Design comparison
SolutionDesign
Solution retrospective
Is there anything That I am missing or should have done better.
please Help๐
Community feedback
- @NehalSahu8055Posted over 1 year ago
Hello Dessidy ๐.
Congratulations on successfully completing the challenge! ๐
Few suggestions regarding design.
-
Remove
padding
from.container
as it will not dynamically center the card. -
To properly center the card
-
USING FLEXBOX
body{ min-height: 100vh; display: flex; align-items: center; justify-content: center; }
I hope you find this helpful.
Happy coding๐
Marked as helpful1 -
- @hitmorecodePosted over 1 year ago
Congratulations well done. Just a few thing you can fix
/* the card is horizontally not in the middle of the page. add min-height and flexbox to fix this */ body { background: var(--clr-Very-dark-blue-main-background); font-weight: var(--fw-small); color: var(--Slightly-transparent-white-main-paragraph); font-family: inter; font-size: 15px; min-height: 100vh; /* add this line */ display: flex; /* add this line */ justify-content: center; /* add this line */ align-items: center; /* add this line */ flex-direction: column; /* add this line */ } /* to blend the image and the overlay use mix-blend-mode */ .img_container::before { content: ""; position: absolute; inset: 0; background: var(--clr-Soft-violet); opacity: .8; /* play with the opacity until you get what you want */ mix-blend-mode: multiply; /* add this line */ }
Marked as helpful1
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