Design comparison
SolutionDesign
Community feedback
- @imLumarqPosted over 1 year ago
Hi Othman
- I would suggest using em for your media queries
Give this article a read: PX, EM or REM Media Queries?
Here's my solution:
https://www.frontendmentor.io/solutions/product-preview-card-FyiG1l-E-s
I hope you find this helpful 😄!
Happy Coding!
Marked as helpful0@Rizqy777Posted over 1 year ago@imLumarq Hi, First of all thanks for your advice, I would like you to please explain it to me because I didn't really understand what you are trying to tell me. What I understood is that in "@media" use "em" or "rem" instead of "PX"? Thank you.
0@imLumarqPosted over 1 year ago@Rizqy777 Sorry for not being clear enough. Use the "em" unit within the media query eg.
/*500px*/ @media (max-width: 31.25em){ .container_card{ ... } }
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