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 Center the Wrapper

When I simply add 'background' and then put the colour orange, the page reverts back to the original status

After I centred it, and we were to add the background colour, I did it, but then it turned back to how it originally was. Here is the code for it:

a { text-decoration: none;
}

wrapper {

max-width: 940px; margin: 0 auto background: orange;
}

It turns back and I don't know why

1 Answer

Martin Balon
Martin Balon
43,651 Points

It seems like you forgot to put semicolon after margin: 0 auto.

a { 
    text-decoration: none;
}

wrapper {
    max-width: 940px; 
    margin: 0 auto;
    background: orange;
}
Michael Lambert
Michael Lambert
6,286 Points

looks like you forgot to put the # before the word 'wrapper' :)