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

my workspace does not seem to recognise the css auto attribute just highlights it in red not in auto correct also

a { text-decoration: none; }

wrapper {

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

4 Answers

Add a ":" after "margin" and try again. It thinks that "0 auto" is part of your margin selector.

thank you problem solved!!

Joe Consterdine
Joe Consterdine
13,965 Points

Hi Chris,

I take it 'wrapper' is meant to be a class? or ID?

Where is the '.' or '#' before it to indicate it's one of those two?

I think its an id i have it as #wrapper

Joe Consterdine
Joe Consterdine
13,965 Points

Hi Chris,

can you please take a screenshot of what you're looking at?

then upload it here:

http://postimage.org/

and post it so I can see.

Thanks

thanks for your help, managed to solve it