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 trialPavao Odak
13,648 Pointsmax-width property is broken?
when I apply max-width:940px;
the system refuses to validate this syntax?
3 Answers
Keith Kelly
21,326 PointsThat challenge question requires 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."
Are you properly selecting the wrapper and applying both the max-width and margin properties?
If you could post the code you have written, that would help a lot to solving your problem.
Mario Almeida
Courses Plus Student 2,061 Pointsflowing my code !!!!
wrapper {
max-width:940px; margin:0 auto; padding:0 5%; }
Thomas Regan
2,032 Pointsits very unlikely that it is broken.
please use the markdown cheatsheet to learn to post your code here. Then we can help you out with what is actually happening.
Pavao Odak
13,648 Pointsthank you all for taking time to answer my question. The issue was resolved by itself on the next day. It appears to be, that was a lag/bug/anythingyoucanthinkof but not a wrong syntax :) Thank you again! Great service, great discussion
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsHi Pavao,
What do you have for the rest of it and what error are you getting?