Media Queries in CSS ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Media Queries in CSS ?

Can anyone tell me the devices width used for media queries in CSS. I am really confused and i cant understand Media Queries width for different devices.

8th Jul 2020, 11:39 PM
J.K.A
J.K.A - avatar
4 Answers
+ 1
LIFE DO GIVE SECOND CHANCE :) If you have a pc/laptop, you can get the typical devices viewport dimensions by going to the dev tools in any web browser(Chrome and Firefox recommended). Or there are some online resources out there: 1. https://www.icwebdesign.co.uk/common-viewport-sizes 2. https://docs.adobe.com/content/help/en/target/using/experiences/vec/mobile-viewports.html (This one is overkill..!) 3. http://viewportsizes.mattstow.com
9th Jul 2020, 2:49 AM
Hanuma Ukkadapu
Hanuma Ukkadapu - avatar
0
Well thats a good question. But i dont know the answer
9th Jul 2020, 1:38 AM
Average Pinguin
Average Pinguin - avatar
0
hi LIFE DO GIVE SECOND CHANCE :) you can use bootstrap width breakpoint refference for media querry. although you don't use bootstrap. // Extra small devices (portrait phones, less than 576px) @media (max-width: 576px) { ... } // Small devices (landscape phones, 576px and up) @media (min-width: 567px) and (max-width: 767px) { ... } // Medium devices (tablets, 768px and up) @media (min-width: 768px) and (max-width: 991px) { ... } // Large devices (desktops, 992px and up) @media (min-width: 992px) and (max-width: 1199px) { ... } // Extra large devices (large desktops, 1200px and up) @media (min-width: 1200px) { ... }
16th Jul 2020, 9:04 AM
sobadrdb
- 1
Hope someone answer this question
9th Jul 2020, 1:40 AM
Gang Gang