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 Responsive Layouts Responsive Patterns Responsive Design Review

what is breakpoints?


1 Answer

Cindy Lea
Cindy Lea
Courses Plus Student 6,497 Points

Breakpoints are used with @media queries. @media() specifies a rule to include a block of CSS properties only if a certain condition is true.

Within the media query () you specify a condition. For example, you want the background color of a screen to change depending on how big the screen window is. You might have one size for a cellphone window, one for a tablet, etc. Each condition is called a breakpoint. For the code below, the font size will change only if screen width is at least 360px wide.

@media (min-width: 360px) { body { font-size: 1.0em; } }