Welcome to the Treehouse Community
Looking to learn something new?
Steve Isaacs2,112 Points
Why are the Margin and Padding shorthand numbers different in the example?
The correct code in this challenge shows this for padding and margin:
css: padding: 0 0 0 30px; margin: 0 0 10px;
But why does padding show four values and margin show three? Aren't they both trying to show just a value for the bottom? I'm confused.
This question here is linking to the video so I'm not sure if you're referring to that or a code challenge afterwards.
The 10px for the margin value is for the bottom but the 30px padding value is for the left side, not the bottom. This is to make room on the left for the icons.
1st value is for top then it goes in a clockwise direction around the box. top, right, bottom, left
1st value is top, 2nd value is both left and right, 3rd value is bottom.
1st value is top and bottom, 2nd value is left and right.
All 4 sides get that value.