The padding-top property

The padding-top property sets a top padding of an element. The property value is any size units.

Syntax

cssselector {
  padding-top: value;
}

Example

Let's make the 30px top padding:

html<div id="elem">
  some long text
</div>
css#elem {
  padding-top: 30px;
  width: 300px;
  border: 1px solid black;
  text-align: justify;
}

Результат:

See also