/

HTML / CSS / JavaScript Tutorial

CSS Property: padding-top

[this page | pdf | back links]

The CSS (CSS1) padding-top property sets the width of the top padding (space) of an element.

 

Valid property values (other than inherit and initial) are:

 

Value

Description

length

Any specified thickness as a CSS length

%

As percentage of width of containing element

 

Default Value:

0

JavaScript syntax:

e.g. object.style.paddingTop="4px"

Inherited:

No

Animatable:

Yes

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile