Design comparison
SolutionDesign
Community feedback
- @correlucasPosted about 2 years ago
πΎHello Farrukh, congratulations for your new solution!
Here's some tips to improve your solution and the design:
The correct value for this shadow is
box-shadow: 5px 5px 15px 5px rgb(0 0 0 / 3%);
The best way to create the card vertical alignment is by using
flexbox
.For example, first of all add to thebody
min-height: 100vh
to make the body display 100% of the browser screen size anddisplay: flex
eflex-direction: column
to align the child element (the container) vertically using the body as reference.body { min-height: 100vh; display: flex; justify-content: center; flex-direction: column; background: #D5E1EF; display: flex; align-items: center; }
π I hope this helps you and happy coding!
Marked as helpful0
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