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

Need help centering once again.

I can't seem to center my table. I tired using margin: 0 auto; I have also tried making the div inline-block and using floats.

code is at http://codepen.io/JohnSpahn/pen/yJAgBq

You had margin: 50 auto; in your .centered selector, for one. If you add width: 100%; to your wrapper, it will center as long as you fix the 50 auto typo. (I'm guessing you meant margin: 50px auto; )

.wrapper {
  display: inline-block;
  border: solid 1px;
  width: 100%;
}

.centered {
  margin: 50px auto;
  padding: 50px;
}

Here's some more reading for centering tables. https://www.granneman.com/webdev/coding/css/centertables/