"npm Basics (retiring)" was retired on April 9, 2022. 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

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

Max-Width Error in Code Challenge

On Task 2 of the Code Challenge, I'm suppose to adjust the max-width but am getting Bummer message. I've written this code:

wrapper {max-width: 940px;}

What am I doing incorrectly?

2 Answers

that code is right, but your supposed to center the margin. this is the right code

a {
  text-decoration: none;
}

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

hope this helps!

You need to refer ID property with # sign:

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

Thank you for your help, everyone! A little after I had posted the question, I discovered that I hadn't referred to the id using the hash-mark and was able to self-correct. Glad that I got some affirmatives and help after, though!