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

Jose Luis Lozano
Jose Luis Lozano
4,407 Points

I 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
Martin Mihailovski
5,646 Points

You 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

Jose Luis Lozano
Jose Luis Lozano
4,407 Points

Thanks 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.