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 Adding Pages to a Website Style New Pages

Jackie Jen
Jackie Jen
2,723 Points

What is the meaning of margin: 0 auto 30px

Hi

I know that margin can take up to two or four parameters. How about margin: 0 auto 30px ? what does that mean of each value in margin?

Best regards

2 Answers

Łukasz Czuliński
Łukasz Czuliński
8,646 Points
margin: 0 auto 30px 

This means margin-top is set to 0px, margin-left and margin-right are set to auto, and the bottom is 30px.