Skip to content

Challenge Adjusting the Padding of an Element

SaintPeter edited this page · 1 revision
Clone this wiki locally

HTML elements are essentially little rectangles. Three important attributes control the space that surrounds each HTML element: padding, margin, and border. An element's padding controls the amount of space between the element and its border.

.green-box {
  background-color: green;
  padding: 20px;
}
Something went wrong with that request. Please try again.