The padding
property defines
the spacing within an element,
controlling the space between the content
in the element and its boundaries.
In the provided example,
padding is applied to the div
container
with class parent
.
As a result, we observe margin space
between the p
element
and
the parent container.
However, we also notice space to the
left of the p
element.
This occurs because padding is applied
on all sides of the div
container
with class parent
.
We will learn how to add padding to
individual sides in the next lesson.