First challenge on Frontend Mentor.

Solution retrospective
Struggled with the padding and margin with the landscape page. Any tips?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @nass84
Thank you :)
- @Allamprabhu2003
Hi Becki, use flexbox to align things horizontally or vertically.
- @DEmanderbag
Hey Becki, to align something horizontally you can use margin: 0 on top and bottom and auto on left and right.
You have a couple of options here:
- Try looking into Flexbox where you will be able to align it to center horizontally and vertically
- Or check CSS Grid
In any of these two cases, you will need to put a min-height of 100vh on your parent element in your case body after that you will need a display of flex or grid on your body as well.
Join 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