How does max-width and min-width works in media query? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How does max-width and min-width works in media query?

If max-width then the maximum size will be that much pixel and if min-width then minimum size will be that much pixel

31st May 2022, 5:47 PM
Ritesh Raj
Ritesh Raj - avatar
1 Answer
+ 2
Now let's take it that I have a screen with a pixel of 760px if I want a certain property to only work for that screen and lower, I know that's my max so max-width And when I know I want it to be above it then that's my min-width And if it between, then you specify the two maybe from 200 to 760 or something
31st May 2022, 6:12 PM
Faisal Issaka
Faisal Issaka - avatar