"Build a Basic PHP Website (2018)" was retired on December 10, 2019. You are now viewing the recommended replacement.

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

Is There a bug in this challenge?

I think my code is a 100% correct not sure though

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

please answer, thanks.

5 Answers

In case you are still caught up on this, your code is correct, but where you are putting your code matters (I've made this mistake in the past). Remember that CSS rules always cascade!

By the way it relates to this challenge

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.

Hey Roel, you're code is syntactically correct. I could tell you what's probably the problem however, or you could try and figure it out yourself :stuck_out_tongue:

@Roel - I don't know if, you updated the post, but your code passes step 1 of this code challenge


Mod Note: It's always a good idea to link to the code challenge you are having issues with.

For more tips check out the post on how to ask good questions on the forum

Thanks alot Sam, and James you have been a real help!