Design comparison
Solution retrospective
This is my first landing page challenge on Frontend Mentor.
Initially, I had some trouble wrapping my brain around how to use Flexbox for a full-page landing page, but I think I settled on a pretty efficient way to both vertically and horizontally center the content.
If you have any feedback on how I could improve my HTML or CSS, please let me know!
Community feedback
- @HassiaiPosted almost 2 years ago
For the left and right sides space of the page, give the footer, header and main a max-width of 1440px, a width of 80% and margin: 0 auto.
main, header, footer{ max-width: 1440px; width: 80%; margin: 0 auto; }
Use relative units like rem or em as unit for the padding, margin and width values, instead of using px which is an absolute unit. For more on CSS units Click here Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful2@Ryan-HemrickPosted almost 2 years ago@Hassiai I like this idea! I'll incorporate this into the CSS and see how it behaves. Thanks!
1
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