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
Jonatan Spahn
6,362 PointsNeed 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
Trevor Woodman
Courses Plus Student 13,354 PointsTrevor Woodman
Courses Plus Student 13,354 PointsYou had
margin: 50 auto;in your .centered selector, for one. If you addwidth: 100%;to your wrapper, it will center as long as you fix the 50 auto typo. (I'm guessing you meantmargin: 50px auto;)Here's some more reading for centering tables. https://www.granneman.com/webdev/coding/css/centertables/