Design comparison
Solution retrospective
Hey,
Here is my solution to this challenge. I had some problems with responsiveness because of the flexbox but I managed to fix most of it.
If anyone has some good tips for responsiveness, and if I could have done something better in my solution please let me know.
Community feedback
- @thisisharsh7Posted about 2 years ago
Hey Marko Djurdjevic, Great Job! your solution looks perfect but there are some improvements which could be made
-
Avoid the manual margin to make content align on the center like here you did
.main-container{ margin: 0 auto; }
can be removed because the content already is on the center when you givebody
flex and justify-content center property . Also this top and bottom margin0
make the content stick to both the ends and hence design look unhealthy. -
Avoid using media queries at every screen size.
hope this helps...
0@FrozennnPosted about 2 years ago@thisisharsh7 Hey, thanks for the comment.
-
Yes the reason why I chose to do margin: 0 auto and not justify-content: the center was because on some lower resolutions my content was above the page and some part was cut and that was the only fix I could find. But you are right, the design does look worse I should have come up with a better solution.
-
Why is it bad to use media queries for every screen size? And if not with media queries how would I fix the design on some lower resolutions then?
0@thisisharsh7Posted about 2 years agoHey Marko, there is nothing wrong in using media queries but here you are using media query at 920px and I think this part of your solution could have been better alternative.
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