Specifies the space between an element's top border and its contents.
With the padding-top property you can specify the distance between the top border-top and the element's content.
One of the following values:
|Takes the value of this property from the computed style of the parent element.|
|The space in length units. For the supported length units, see the length page.|
|The space is the specified percentage of the width of the parent element.|
Example HTML code 1:
Did you find this example helpful?
Supported by tags:
User Contributed Comments