de | en

CSS margin

CSS Margin

Description

The CSS margin property is used to define the distance of the elements border to its adjacent elements.

Example Margin

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

More CSS Properties