Can someone explain this, how padding 0 implies to 100px of height?
It doesn’t. The height comes from the .block
selector rule.
padding: 0 50px;
The value, when arranged with only two values reads as,
padding-top: 0;
padding-bottom: 0;
padding-left: 50px;
padding-right: 50px;
1 Like