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

Colten Rowland
Colten Rowland
335 Points

What am I doing wrong?

wrapper{

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

a { text-decoration: none; }

7 Answers

Spencer Merritt
Spencer Merritt
10,615 Points

No comma between 0px auto. And you can drop the px. Just margin: 0 auto;

Spencer Merritt
Spencer Merritt
10,615 Points

This a general forum. I don't work for Treehouse. I'm a member like you trying to help you out. It's always best to post as much info at possible for people to be able to help you better. I think this is what your looking for.

a {text-decoration:none;}
#wrapper {max-width:940px; margin:0 auto;}
#logo {text-align:center;}
Colten Rowland
Colten Rowland
335 Points

Still didn't work.

wrapper {

max-width: 940px; margin: 0 auto; } a { text-decoration: none; }

Spencer Merritt
Spencer Merritt
10,615 Points

Well what's the full question your trying to answer then. You're not giving much info for us to help you with.

Colten Rowland
Colten Rowland
335 Points

What is wrong with this code. Your system will not allow me to move on without completing this challenge. Is this a bug in your system or am I doing something wrong?

wrapper {

max-width: 940px; margin: 0 auto; } a { text-decoration: none; }

Colten Rowland
Colten Rowland
335 Points

I'm new to treehouse. My assumption is that you can see my progress and know what I am trying to accomplish.

Colten Rowland
Colten Rowland
335 Points

Do I have to post the challenge question as well? I assumed you work for this company and your are familiar with the course material provided online.

Colten Rowland
Colten Rowland
335 Points

So sorry. Thank you for taking the time to respond to me. Sorry for my lack of understanding.

Select the ID wrapper, set it to a max width of 940 pixels, and then center it on the page using the margin property.

wrapper {

max-width: 940px; margin: 0 auto; } a { text-decoration: none; }