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

what is the problem

a { text-decoration: none;

wrapper {

width: 940px;
margin: 0 auto;

}

what is my problem

6 Answers

Hi Daniel!

You aren't closing your 'a' tag selector which is why your CSS isn't working properly. Once you go ahead and add the closing curly brace it will work absolutely fine!

Keep up the good work and I hope that I helped you out.

Maximiliane Quel
PLUS
Maximiliane Quel
Courses Plus Student 55,489 Points

you are missing a closing curly brace at the end of your first statement. and wrapper is also an id so you need to start your selector with #:

a { text-decoration: none; }

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

Great answer!

I know you can't see it either but he actually has selected #wrapper properly, it just isn't showing because the code hasn't been properly formatted to display on the forum.

Maximiliane Quel
Maximiliane Quel
Courses Plus Student 55,489 Points

reviewing the challenge you were also asked to set a maximum width so you should have written:

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

Another good spot, great job :)

did not work

Maximiliane Quel
Maximiliane Quel
Courses Plus Student 55,489 Points

can you copy and paste the exact code that does not work, please?

it did not work

Maximiliane Quel
PLUS
Maximiliane Quel
Courses Plus Student 55,489 Points

well, what exactly is "it"???

the challenge has two stages the first one asks you to Write a CSS declaration that will remove the underlines from all the links on the page:

a { 
  text-decoration: none; 
}

the second stage asks you to Select the ID wrapper, set it to a max width of 940 pixels, and then center it on the page using the margin property. You need to write the next statement outside of the curly braces of the first and underneath:

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

what you will need to see is this:

a {
 text-decoration: none; 
}

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

I am pretty sure that entering it like that will let you pass (not least since I have done so three times in a row now).

it did not work