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

CSS How to Make a Website CSS: Cascading Style Sheets Style the Basic Elements

Pavao Odak
Pavao Odak
13,648 Points

max-width property is broken?

when I apply max-width:940px;

the system refuses to validate this syntax?

Hi Pavao,

What do you have for the rest of it and what error are you getting?

3 Answers

Keith Kelly
Keith Kelly
21,326 Points

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

flowing my code !!!!

wrapper {

max-width:940px; margin:0 auto; padding:0 5%; }

its 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
Pavao Odak
13,648 Points

thank 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