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

General Discussion

Moving a css block in a code challenge will result in a wrong answer.

So I was doing a simple code challenge at this URL: http://teamtreehouse.com/library/refactor-the-layout

The media Query that it wanted me to edit was at the very bottom of the page. So I moved it to the top so I could read the challenge while editing the code. This resulted in a wrong answer when indeed my code was correct. I moved it back to the bottom of the page and it worked and gave me a correct answer.

I have noticed some other weird bugs with the code challenges and workspaces, where do I submit the bugs?

3 Answers

you can submit any bugs to Support. There is a contact support button that will open up a form that you can submit and they usually email you back within a few days

Thanks!

I don't think it's a bug. When you move the media query to the top then you have all the css after it that can overwrite it. You set the width of the li's to 28.3333% in the media query but then further down in the css they are set back to 45%.

Sometimes you can get away with moving css around and other times you can't.

I should add that whenever two selectors have the same specificity then the one that appears further down in the file takes precedence. By changing the order of the css you've changed what appears further down.