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
Aurelian Spodarec
10,801 PointsHow come this is invalid?
padding: 70px auto;
?
First time this doesn't work, but it says invalid property wut? i don't see anything wrong with this.
Aurelian Spodarec
10,801 PointsNot exactly. But yeah, I had to put another property margin. But thanks.
Ella Ruokokoski
20,881 Pointspadding doesn't accept auto as value. i.e. it's not a proper value for the padding property.
Aurelian Spodarec
10,801 PointsGood answer :) I didn't actually know that lol I can't remember why i put that on auto lol maybe I need a break but well good to know, thanks :)
It's quite obvious that padding won't accept value auto as that's illogical but eh, i need a break and eat something lol
Mark Trevathan
11,613 PointsMark Trevathan
11,613 PointsWell it seems to me that you may be trying to center your container. In which case you would want:
margin: 70px auto;