@imLumarq
Posted
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 helpful
@Rizqy777
Posted
@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.
@imLumarq
Posted
@Rizqy777 Sorry for not being clear enough. Use the "em" unit within the media query eg.
/*500px*/
@media (max-width: 31.25em){
.container_card{
...
}
}