Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Basics (2014) Enhancing the Design With CSS Adjusting the Layout with Media Queries

Setting max-width for media queries

How do we know what size to set max-width for media queries? IS there a standard for phones vs. tablets, or do developers choose them randomly...? If I resize my window, how do I know what size the window is now?

2 Answers

Ryan Field
PLUS
Ryan Field
Courses Plus Student 21,242 Points

Hi, Yvette. There are some really basic general sizes that people use, specifically 480px (phones), 768px (tablets), and 1024px (computer screens), but these are, again, very general and differ from person to person and project to project. It's generally a better idea to just put in a breakpoint when your content starts to look strange as you narrow your screen. You can tell the size of your screen, by the way, if you have the developer tools open (at least on Chrome) when you shrink the size down (it should be in the top right corner).

Thanks Ryan, that helps.