The padding-left property
The padding-left property sets a
left padding of an element. The property
value is any
size units.
Syntax
cssselector {
padding-left: value;
}
Example
Let's make the 30px left padding:
html<div id="elem">
some long text
</div>css#elem {
padding-left: 30px;
width: 300px;
border: 1px solid black;
text-align: justify;
}
Результат:
See also
-
the
padding-topproperty
that sets a top padding -
the
padding-bottomproperty
that sets a bottom padding -
the
padding-rightproperty
that sets a right padding -
the
paddingproperty
that is a shorthand for a padding -
the
marginproperty
that sets a margin