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 trialCorwyn Wilkey
7,971 PointsWhat's wrong with my code?
a {
text-decoration: none;
}
wrapper {
max-width: 940px;
margin: auto;
}
I keep getting "Bummer! Check the max-width value is 940px". Is that not what I have it set at here?
4 Answers
Tim Knight
28,888 PointsThis one is tricky because the question isn't really clear as to the selector that they want you to write... you should actually be selecting #wrapper
as ID of wrapper. So:
#wrapper {
max-width: 940px;
margin: auto;
}
Justin Wiswell
9,471 PointsI looks like you haven't defined your <wrapper>
element in the CSS properly. Assuming it is a class (and not ID) it should be typed .wrapper{}
(the period denotes it is a class)
Scott Evans
4,236 Points#wrapper
You forgot the ID selector :D
Corwyn Wilkey
7,971 PointsYup... Durp. I got it, thanks. Rookie move...
Diane Houghton
5,773 PointsIt's actually a div id="wrapper", so you have to identify your wrapper element in css as #wrapper. also if you are centering your wrapper, it will want margin: 0 auto;