Design comparison
SolutionDesign
Community feedback
- @ahmedafsaPosted 11 months ago
Hello @Owner-test!
I noticed that you're using a percentage value for the component's width. this approach could distort the appearance of the component, especially when the screen size changes
It's better to use rems or pixels such as
max-width: 18rem
ormax-width: 300px
for example!Best wishes to you!
Marked as helpful1@Owner-testPosted 11 months agoWhat is the difference between rems and pixels? @ahmedafsa
0@ahmedafsaPosted 11 months ago@Owner-test Hello You can read this question's answers. It will help you a lot^^
Marked as helpful0@ahmedafsaPosted 11 months ago@Owner-test But in general using rems is better to make a responsive website
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