de | en

CSS padding

CSS Padding

Description

The CSS padding property is used to define the the distance between the elements border and its content.

Example Padding

div {
   padding: 5px;
}
div#2 {
   padding: 5px 5px 5px 5px;
}
div#3 {
   padding-left: 5px;
   padding-top: 5px;
   padding-right: 5px;
   padding-bottom: 5px;
}

More CSS Properties