CSS Tutorial

CSS Style

CSS Layout Style

CSS Float Style

CSS Reference

CSS padding property




The CSS padding property set all side padding space between all side border or content of an element.


Property Values


Properties Value Description
Syntax padding:value;
value   width
  inherit    Lern More...
Allow to All elements
Inherited No

Example-Code:

<p style="padding:30px;border:2px solid orange;">This example is
Padding set space</p>
Online Try This Code Your Self....   »

Example-Result:

This example is Padding set space