About Padding Properties
= Index DOT Css by Brian Wilson =

  Main Index | Property Index | CSS Support History | Browser History  


Padding Properties
padding | padding-top | padding-right
padding-bottom | padding-left

What Do They Do?
In CSS, the fundamental visual rendering model places all components of the document tree in physical and virtual rectangular boxes, each having a specific height and width. An element's rendering box consists of an element's content at the center (text, images, etc.) Surrounding the element's content (moving outward in rectangular layers/strips) are optional padding, surrounded by any optional border effects, surrounded in turn by any optional margin values that may be specified.

The padding properties allow the author to specify how much space will be inserted between the element border and the element content. Negative values are not allowed.

Each side of the padding dimensions (top, right, bottom and left) can be addressed and controlled independently using separate properties, or a convenient shorthand notation may be used that controls multiple sides at once.
Related Sites
Official Reference: CSS Level 1, Sections 5.5.6-10
5.5.10: 'padding'
5.5.6: 'padding-top'
5.5.7: 'padding-right'
5.5.8: 'padding-bottom'
5.5.9: 'padding-left'
Official Reference: CSS Level 2, Section 8.4
8.4: 'padding',
8.4: 'padding-top'
8.4: 'padding-right'
8.4: 'padding-bottom'
8.4: 'padding-left'


Boring Copyright Stuff....