Design comparison
Solution retrospective
Additional suggestions are fully welcomed!.π
Community feedback
- @dwhensonPosted about 3 years ago
Hey @Timi-cell π - Great job on this one it looks lovely!
One think you might want to think about is stopping the page from spreading too wide a very large screens? There are many ways to do this but I set a grid on the body element, with three columns, as using a class selector as follows:
.center-content { display: grid; grid-template-columns: minmax(1rem, 1fr) minmax(375px, 1440px)minmax(1rem, 1fr); } .center-content > * { grid-column: 2; }
The 1440px is the max-width you want the main content to be, and the 1rem values is the smallest spacing you want either side of the main content on small screens (I sometimes put this to 0 and use a container to add padding to each section).
The second part positions all direct children of the body in this nicely sized middle column. In your case, mostly, your sections and footer, and stops them going wider than 1440px. Itβs also pretty easy to βbreakβ elements out of this contestant if you need to.
Other people use container classes to do the same thing. Either way it's a good idea to find an approach that works for you as you'll need this for a lot of FEM challenges.
Other small suggestions are to use the
header
element rather than thesection
that you have yourtop
class attached to and to tone down the shadows a little bit - perhaps some more blur value? I can never get these right and often just use one of the online tools that can help visualise what I am looking for!But lovely work π and keep it up π
Cheers π
Dave
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