170 of 313 menu

The padding-top property

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

Syntax

selector { padding-top: value; }

Example

Let's make the 30px top padding:

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

:

See also

byenru