FAQ: Media Queries - Breakpoints


#1

This community-built FAQ covers the “Breakpoints” exercise from the lesson “Media Queries”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Learn Responsive Design

FAQs on the exercise Breakpoints

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!


#2

The lesson says the following about finding breakpoints:

“Rather than set breakpoints based on specific devices, the best practice is to resize your browser to view where the website naturally breaks based on its content. The dimensions at which the layout breaks or looks odd become your media query breakpoints.”

How do we know the dimensions it breaks at when resizing though? I can see when it breaks, but I don’t know what that width is in pixels. Do we just take a guess or is there some kind of tool we can use?

Thanks!


#3

You could use responsive design mode:

https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_Mode

Firefox has it for sure, not sure about chrome. But surely tools exist for it. Google is your friend

seems to exist for chrome as well:

https://developers.google.com/web/tools/chrome-devtools/device-mode/


#4

Hi,

I would also like to have a question regarding this topic.
In the examples the usual landscape width is mentioned to be 1024px.
New phones and tablets are not 1080px wide?

Thanks,
David