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 trialJose Luis Lozano
4,407 PointsI can't pass this quiz. Which mistake am i making? a { text-decoration: none; } #wrapper { max-width: 940 px;}
I review the lesson and I can not find the correct solution
3 Answers
Martin Mihailovski
5,646 PointsYou should add margin property to center the class="wrapper" , see bellow i will explain it.
You have wrapper { max-width: 940px; }
that's right, but your wrapper will start left to right, and you have in the quiz job to make it centered.
You can center it, with added margin "auto" from left and right side, or...
margin: 0 auto;
0 - for top and bottom auto - for left and right
and your final code should be (just add # before wrapper)
wrapper { max-width: 940px; margin: 0 auto; }
Kind regards, Martin
Callum King
Front End Web Development Techdegree Student 4,934 PointsYou haven't added the margin property that would center the wrapper on the page, as requested in the question.
Jose Luis Lozano
4,407 PointsThanks to Callum King and Martin Mihailovski for take the time to answer me. In this link you Will find a present to you. Bit.Ly/lozano_efectos
Thanks. José Luis Lozano.