Design comparison
Solution retrospective
I am unsure of how to centralise the whole thing. Also how to make the copyright and the rest be at the bottom of the page.
Community feedback
- @correlucasPosted about 2 years ago
πΎHello @stepheigbe, congratulations for your new solution!
You've done a good work here and we'll fix your solution together:
Remove these properties, the card size is
max-width: 320px
note that1440px
is only a reference to say in with dimension the desing were created.main { max-width: 320px /* width: 1440px; */ /* height: 800px; */ }
My advice here is to use
flexbox
to create this alignment. 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 the body is the parent in this situation.Here's the code to align you solution:
body { display: flex; margin: 0; min-height: 100vh; padding: 0; font-family: 'Outfit', sans-serif; margin: 15px; font-size: 15px; background-color: rgb(150, 183, 226); align-items: center; justify-content: center; }
π I hope this helps you and happy coding!
0@correlucasPosted about 2 years ago@stepheigbe I'm happy to hear that was useful, keep it up π
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