+ 1

What are the most current basic CSS media query breakpoints?

For a mobile-first style sheet, what are the most current min-width CSS media query breakpoints and are there any advantages/ disadvantages to using px vs em vs some other unit of measure for the breakpoints?

28th Jun 2021, 11:49 AM
Lisa F
Lisa F - avatar
1 Answer
+ 1
/* Extra small devices (phones, 600px and down) */ @media only screen and (max-width: 600px) {} /* Small devices (portrait tablets and large phones, 600px and up) */ @media only screen and (min-width: 600px) {} /* Medium devices (landscape tablets, 768px and up) */ @media only screen and (min-width: 768px) {} /* Large devices (laptops/desktops, 992px and up) */ @media only screen and (min-width: 992px) {} /* Extra large devices (large laptops and desktops, 1200px and up) */ @media only screen and (min-width: 1200px) {}
1st Jul 2021, 1:38 PM
Veliside
Veliside - avatar