padding

Support Key: [CSS1|CSS2] [IE4B2|N4B3|O3.5]
Other Padding Properties
padding-top
padding-right
padding-bottom
padding-left
= Index DOT Css by Brian Wilson =
  Main Index | Property Index | CSS Support History | Browser History  



   Quick Statistics   
Default Value:
NA
Applicable Elements:
ALL
Inherit From Parent:
No
Applicable Media:
Visual
HTML Equivalent:
NA
What is it?
This is a shorthand property which allows an author to specify 'padding-top', 'padding-right', 'padding-bottom', and 'padding-left' properties using a single property and value notation (the values are given in this order separated by spaces.) If one or more of the values are not present, the value for a missing side is taken from the opposite side that is present. If only one value is listed, it applies to all sides. The rendered surface of the padding area is taken from the 'background' property.

Allowed Values
inherit
[CSS2] [N6|O7]
Type: Explicit
Description:
Explicitly sets the value of this property to that of the parent.
[length]
[CSS1|CSS2] [IE4B2|N4B3|O3.5]
Type: Explicit
Description:
Refers to either an absolute measurement or a relative measurement based on the current element's font size.
[percentage]
[CSS1|CSS2] [IE4B2|N4B3|O3.5]
Type: Calculated
Description:
Refers to a percentage of the width of the current element's containing block.
Syntax
Selector { padding: ([length] | [percentage]) {1,4} }
Example
Ext/Doc: body { padding: 5px 5px 2px 25px }
In-Line:  <body STYLE="padding: 5px 5px 2px 25px">this is a test display document</body>
Browser Peculiarities

Boring Copyright Stuff....