Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Responsive Layouts Responsive Patterns Responsive Design Review

what is breakpoints?

a

1 Answer

Cindy Lea
PLUS
Cindy Lea
Courses Plus Student 6,484 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; } }