Design comparison
SolutionDesign
Community feedback
- @correlucasPosted over 2 years ago
πΎHello again Olha, congratulations for your new solution!
Here's my tips for you about the alignment:
The best way to align this kind of containers vertically is by using the body and
min-height: 100vh
to make the child element align to the parent height, I saw that you've used these properties in the main but is not the best way:Here's the changes I did for your code to allow it to align:
body { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 300; background-color: var(--body-background); color: var(--nft-item-color); display: flex; flex-direction: column; margin: 4em 0 2em 0; } .main { /* max-width: 1100px; */ /* min-height: 100vh; */ overflow: hidden; /* margin: auto; */ /* flex: 1 1 auto; */ }
π 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