freeCodeCamp Challenge Guide: Add Different Padding to Each Side of an Element

freeCodeCamp Challenge Guide: Add Different Padding to Each Side of an Element
0

#1

CSS allows you to control the padding of an element on all four sides with padding-top, padding-right, padding-bottom, and padding-left attributes.

.green-box {
  background-color: green;
  padding-top: 40px;
  padding-right: 20px;
  padding-bottom: 20px;
  padding-left: 40px;
}

#2