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 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_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6 {
    margin-right: 1.25%;
    float: left;
    display: block;
}

http://teamtreehouse.com/library/build-a-responsiveawebsite/responsive-design/content-defined-breakpoints

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.