CSS CSS Layout Basics Getting Started with CSS Layout Centering Page Content and Creating a Full-width Header

arieloo
arieloo
8,480 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;
}
Rafael Castillo
seal-mask
.a{fill-rule:evenodd;}techdegree
Rafael Castillo
Front End Web Development Techdegree Student 9,225 Points

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.