Submitted over 2 years ago
I used grid and flex box for this project and media qurerys.
@ayush111222
Design comparison
SolutionDesign
Community feedback
- @correlucasPosted over 2 years ago
πΎHello ayush, congratulations for your new solution!
Here's some tips to improve your solution:
Improve your
box-shadow
givin it more blur to make it more smooth, heres a good value for the shadow:section .box div { box-shadow: rgb(0 0 0 / 24%) 0px 3px 20px; }
All you need to align the container vertical is to first remove
width: 1440px
(this measure you dont need to insert is just the value the design were created is a value for reference). Addmin-height: 100vh
to make the child element align to the parent height and flexbox properties for the alignment.See the code changes below:
main { min-height: 100vh; /* width: 1400px; */ margin-top: 2rem; display: flex; align-items: center; justify-content: center; flex-direction: column; }
π 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