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

Carlos Belnap
Carlos Belnap
4,564 Points

I set max-width at 940px but it keeps telling me to check my max-width value. Is this a glitch?

a {
  text-decoration: none;
{

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

Hey Carlos, you almost had the code highlighting working. You have to use the backtick character " ` " — it's to the left of the one key. Fixed it for you. :smiley:

1 Answer

Robert Komaromi
Robert Komaromi
11,927 Points

You have an opening curly brace { after your text-decoration property, this should be a closing curly brace }. Also, when selecting an element with an ID, you should prefix it with a pound symbol #. So you should end up with the following:

a {
    text-decoration: none;
}

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

There is no glitch, you just had invalid CSS.

Carlos Belnap
Carlos Belnap
4,564 Points

It worked! Thanks, I will keep an eye out for bracket dyslexia.