ScanSkill

margin-bottom

The margin-bottom property sets the margin to the bottom of the element.

Syntax

margin-bottom: value | auto;

Example

.mydiv{
 margin-bottom: 20px;
 background-color: red;
}
margin-bottom

Property Values

value: sets the provided value as the margin to the bottom of an element.

auto: automatically sets the margin to the bottom of an element.