Padding

The CSS Padding property it is used to set the space between an html element border and the html element content. The padding values are: auto, length (px, pt, cm, em), %, inherit.

The Padding properties are:

  • padding
  • padding-left
  • padding-right
  • padding-top
  • padding-bottom

Padding example:

<html>
<head>

</head>
<body>

My standard paragraph.

Paragraph with padding declared.

Paragraph with a specified padding bottom.

Paragraph with a specified padding to left.

</body> </html>



My standard paragraph.

Paragraph with padding declared.

Paragraph with a specified padding bottom.

Paragraph with a specified padding to left.