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 How to Make a Website CSS: Cascading Style Sheets Style the Basic Elements

Greg Kitchin
Greg Kitchin
31,522 Points

Problem with challenge task 2.

So for task 2 I've got to task 2 and I can't progress. It wants me to check the max-width value, but I have it exactly as they want it (940px). Any idea's what I'm doing wrong? Thanks.

The question itself is, Select the ID wrapper, set it to a max width of 940 pixels, and then center it on the page using the margin property.

a { text-decoration: none; } wrapper# { max-width: 940px; margin: 0 auto; }

2 Answers

The id selector (#) is in the wrong place: it should be #wrapper.

Greg Kitchin
Greg Kitchin
31,522 Points

That was it, thanks for that. The error message had me looking at the wrong section of my code, I'll have to bear that in mind in future.