The padding area is the space between the content of the box and its border.
In the below image, this are the areas:
This area is a part of the background.
p {
padding: 10px 20px;
/* same than
padding-top:10px;
padding-bottom:10px;
padding-right:20px;
padding-left:20px;
*/
}
p {
background-color: skyblue;
border: 1px solid
}
<p>Lorem Ipsum</p>
p {
padding: 10px 20px 30px;
/* same as
padding-top: 10px;
padding-right: 20px;
padding-left: 20px;
padding-bottom: 30px;
*/
background-color: skyblue;
border: 1px solid
}
<p>Lorem Ipsum</p>
p {
padding: 10px 20px 30px 40px;
background-color: skyblue;
border: 1px solid
}
<p>Lorem Ipsum</p>
This area is set:
padding properties cannot utilize negative length, margin can