Skip to content
Find file
5f96f33
11 lines (10 sloc) 306 Bytes

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;
}
Something went wrong with that request. Please try again.