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

Content Defined Breakpoints Task 1 Bug ?

The task -

Write a media query at 705px where the layout begins to break, that forces grid_1 through grid_6 to span 100% width of the container.

My code -

@media screen and (max-width: 705px;) {
.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6 {
width: 100%;
}

The preview changes, everything seems to be working, but I get an error that everything isn't correct. Do I really have an error or is this a bug ?

Thank you, Kris

5 Answers

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hey Kris,

You're super close – it just looks like you need to remove the semicolon in the max-width declaration.

It should be: (max-width: 705px)

Hope that helps :)

Hmmm, doesn't seem like there's anything wrong with your code that I can see. Could you email me a screenshot of the code challenge you're working on? That'll help us see the full picture :) Thanks! help@teamtreehouse.com

Eyes like a hawk! Thanks @Guil :D

James Barnett
James Barnett
39,199 Points

If you could post

  • a link to the challenge you are working
  • a working version of your code on http://codepen.io

Then rest of the forum members could help out, we would have the information in the forum for the future.

Thank you very much Guil!