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 trialDaniel Holmes
2,765 Pointswhat is the problem
a { text-decoration: none;
wrapper {
width: 940px;
margin: 0 auto;
}
what is my problem
6 Answers
Luke Glazebrook
13,564 PointsHi 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
Courses Plus Student 55,489 Pointsyou 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;
}
Luke Glazebrook
13,564 PointsGreat 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
Courses Plus Student 55,489 Pointsreviewing the challenge you were also asked to set a maximum width so you should have written:
#wrapper {
max-width: 940px;
margin: 0 auto;
}
Luke Glazebrook
13,564 PointsAnother good spot, great job :)
Maximiliane Quel
Courses Plus Student 55,489 Pointsthanks blush
Daniel Holmes
2,765 Pointsdid not work
Maximiliane Quel
Courses Plus Student 55,489 Pointscan you copy and paste the exact code that does not work, please?
Daniel Holmes
2,765 Pointsit did not work
Maximiliane Quel
Courses Plus Student 55,489 Pointswell, 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).
Daniel Holmes
2,765 Pointsit did not work