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 Build a Responsive Website Responsive Design Content Defined Breakpoints

bahman sadeghi
bahman sadeghi
4,810 Points

why ?

i change all percent to 100 but it didn`t work?

@media screen and (max-width:705px)

.grid_1 { width: 100%; } /* 125px/800px = 15.625% */
.grid_2 { width: 100%; } /* 260px/800px = 32.5% */
.grid_3 { width: 100%; } /* 395px/800px = 49.375% */
.grid_4 { width: 100%; } /* 525px/800px = 65.625% */
.grid_5 { width: 100%; } /* 665px/800px = 83.125% */
.grid_6 { width: 100%; } /* 800px/800px = 100% */
.grid_6 {
    margin-right: 1.25%;
    float: left;
    display: block;


2 Answers

If you copied your code directly from your stylesheet you are missing the curly brackets around the entire media query.

Sarah Bradberry
Sarah Bradberry
7,115 Points

To make a break point in your print css you need to use the page-break-after or page-break-before commands.