Design comparison
Solution retrospective
Open to input especially around the media query. I need to modify my width too as I set them differently from the specified size while working through!
Community feedback
- @AlexBueckigPosted about 5 years ago
Hi nlefty,
Your solution looks great. As you already mentioned, there is one slight issue with your media queries. Your content starts to overflow and creates horizontal scrolling starting from 960px. One thing that'd get around the issue quite easily is to set your current breakpoint to something like 970px. Furthermore you can then add a
max-width: 600px;
with amargin: 0 auto;
to your.wrapper
class for the mobile part. And if you don't like your elements being pushed all the way to the corners of the viewport, just addpadding: 0 1em;
to your.wrapper
aswell. That should make it, hopefully... 😃 Didn't test it myself, just went through it in my head real quick. 😇And I saw you are using a desktop first workflow! How about trying to use mobile first for your next project! 😃 It's the preferred workflow nowadays because it makes mobile devices load less style-information which is better for optimization purposes.
Another advantage is that you don't have to use any special layout tools for mobile, you can mostly just use block level elements which is the default behavior. That means that you have to reset way less code when doing the desktop parts of your layout in your media queries later on. Less code means less work and better maintainability in general. 😇
1@nleftyPosted about 5 years agoThank so much for your input @AlexBueckig. I'm def going to play around with what you suggested, especially for my next project to try mobile first!!
0 - @mattstuddertPosted about 5 years ago
Awesome work on this challenge and congrats on submitting your first solution! Alex has given some awesome advice, so all I'll say is keep up the great work 🙂
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