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 trialbahman sadeghi
4,810 Pointswhy ?
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;
}
2 Answers
Dave Evans
13,160 PointsIf you copied your code directly from your stylesheet you are missing the curly brackets around the entire media query.
Sarah Bradberry
7,115 PointsTo make a break point in your print css you need to use the page-break-after or page-break-before commands.