Design comparison
Community feedback
- @correlucasPosted about 2 years ago
👾Hello Saurabh, congratulations for your first solution!👋 Welcome to the Frontend Mentor Coding Community!
You’ve done really good work here putting everything together, I’ve some suggestions to improve the design:
Your component is perfect, but is not responsive yet, this is due the
fixed width
you've applied to the container.Look both
width
andmax-width
the main difference between these properties is that the first(width) is fixed and the second(max-width) isflexible
, for example, a component withwidth: 320px
will not grow or shrink because the size will be ever the same, but a container withmax-width: 320px
ormin-width: 320px
can grow or contract depending of the property you've set for the container. So if you want a responsive block element, never usewidth
choose ormin-width
ormax-width
.Think about using relative units as
rem
orem
instead ofpx
to improve your performance by resizing fonts between different screens and devices.Anyhow, if we want a more accessible website, then we should use rem instead of px. REM does not just apply to font size, but to all sizes as well.✌️ I hope this helps you and happy coding!
Marked as helpful1@akgec-saurabhPosted about 2 years ago@correlucas Thank you so much @correlucas I really appreciate it, I watched many videos but still many times I get stuck between max-width or min-width Thank you it will really help me to be a great designer.
1@correlucasPosted about 2 years ago@saurabh-mech Hey! I'm happy to hear that, say me if works then! Keep it up =)
Marked as helpful1
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