Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS How to Make a Website CSS: Cascading Style Sheets Style the Basic Elements

Brittni Kelly
Brittni Kelly
1,250 Points

I do not see where my max-width value is off. It asks for a max-width of 940 pixels. Mine reads: max-width: 940px;

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

My answer:

wrapper {

max-width: 940px;
margin: 0 auto;

}

Ryan Decker
Ryan Decker
3,451 Points

You need to add the full ID selector like this:

#wrapper {max-width: 940px;
margin: 0 auto; }
Brittni Kelly
Brittni Kelly
1,250 Points

Sorry, it removes the # when I paste the answer in, but it is setup exactly the same as your comment and it will not go through.

1 Answer

Kelly von Borstel
Kelly von Borstel
28,878 Points

It looks correct, but maybe you can paste entire code in case there's a problem elsewhere. Here are instructions to paste code so it doesn't remove the # like you mentioned. And here's the code I used to pass challenge. https://teamtreehouse.com/forum/posting-code-to-the-forum

a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
}

#logo {
  text-align: center;
}
Brittni Kelly
Brittni Kelly
1,250 Points

Thank you, Kelly! #wrapper was always gray when I typed it, so it must not have recognized my hashtag. This was a great help!