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 trialChris Grazioli
31,225 PointsI the Task 2 really 940px... cause its not working
I have :
wrapper{
max-width:940 px; margin: 0 auto; }
2 Answers
Shaker Advertising
5,395 PointsThere shouldn't be a space between the number and the unit. You also need to declair wrapper as either an ID or a Class of wrapper.
It should look like this:
/* If it's <div id="wrapper"> you should use: */
#wrapper{
width:100%;
max-width:940px;
margin:0 auto;
}
/* If it's <div class="wrapper"> you should use: */
.wrapper{
width:100%;
max-width:940px;
margin:0 auto;
}
Hope that helps.
Domen Stojic
31,376 PointsHi!
You forgot the # for id
The complete solution is:
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
}