@ahmedafsa
Posted
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
or max-width: 300px
for example!
Best wishes to you!
Marked as helpful
@Owner-test
Posted
What is the difference between rems and pixels? @ahmedafsa
@ahmedafsa
Posted
@Owner-test Hello You can read this question's answers. It will help you a lot^^
Marked as helpful
@ahmedafsa
Posted
@Owner-test But in general using rems is better to make a responsive website
Marked as helpful
@Owner-test
Posted
@ahmedafsa thanks