CSS Tutorial

CSS Style

CSS Layout Style

CSS Float Style

CSS Reference

CSS padding-top property




The CSS padding-top property set padding space between top border or content of an element.


Property Values


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

Example-Code:

<p style="padding-top: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