Design comparison
Solution retrospective
Hello, any improvement is welcomed. Thank you.
Community feedback
- @ApplePieGiraffePosted almost 4 years ago
Hey there, again, Marta! 👋
I think you've done a good job on this challenge! 👍 Your solution looks good and is responsive! 👏
I suggest,
- Adding a
max-width
to the main container or wrapper to prevent the content of the page from becoming too wide on extra-large screens. - Adding
overflow-x: hidden
to thebody
(or something similar) to prevent a horizontal scroll bar from appearing along the bottom of the page when the screen width decreases in the desktop layout. - Horizontally centering the content of the page in the tablet layout (just below 768px), which you can easily do by adding
margin: 0 auto;
tosection.wrapper
.
Keep coding (and happy coding, too)! 😁
1@martam90Posted almost 4 years ago@ApplePieGiraffe thank you for your feedback. I wonder if by adding max-width do you mean percentage width of 100%? Or in that cases it is better to use precise width of let say 1200px? Thanks!
0@ApplePieGiraffePosted almost 4 years ago@martam90
If you add
width: 100%
to thesection.wrapper
, it'll take up 100% of the width of its parent element, which is in this case, thebody
. That's good for layouts that are 1440px wide and below, but if thesection.wrapper
is still 100% of the width of the viewport at around 1900px, things begin to look rather far apart and a little stretched. That's why if you addmax-width: 1440px
(or something similar) tosection.wrapper
and center it in the viewport using flexbox or auto margins, there'll simply be blank space to the sides of the content and the design won't be stretched or anything on extra-large screens. 😉1 - Adding a
- @MasterDev333Posted almost 4 years ago
Good work @Marta! It would be great if you make your class names more readable. I suggest you use BEM naming conventions. It's pretty cool~ Hope it helps. Happy coding~ :)
0@martam90Posted almost 4 years ago@MasterDev333 thanks, I know BEM but I think I have some kind of phobia using it :) I think it is right time to start using BEM though. Thank you :)
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