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 CSS Layout Basics Getting Started with CSS Layout Centering Page Content and Creating a Full-width Header

arieloo
arieloo
13,257 Points

I don't understand the following challenge ! I do everything right but it keeps asking if "width is set on 80% ?" HELP

I wrote this :

.container { width : 80% ; margin : 0 auto ; }

But it keeps saying that I did not set width on 80%... I can't be the only one having these bug, can I ??

1 Answer

Your code appears correct. I just cleaned up the spaces and it passed.

.container { 
  width: 80%;
  margin: 0 auto;
}

I think it's the extra space between width/margin and the colon that makes his code incorrect, since your cleanup resulted in a passing score.