Difference between revisions of "CSS GUIDE PADDING LEFT"
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
== Summary == | == Summary == | ||
Line 22: | Line 21: | ||
'''inherit''' | '''inherit''' | ||
− | Explicitly sets the value of this property to that of the parent. | + | * Explicitly sets the value of this property to that of the parent. |
'''length''' | '''length''' | ||
− | Refers to either an absolute measurement or a relative measurement based on the current element's font size. | + | * Refers to either an absolute measurement or a relative measurement based on the current element's font size. |
'''percentage''' | '''percentage''' | ||
− | Refers to a percentage of the width of the current element's containing block. | + | * Refers to a percentage of the width of the current element's containing block. |
== Mozilla Recommended Values == | == Mozilla Recommended Values == | ||
Line 44: | Line 43: | ||
== Specification Conformance == | == Specification Conformance == | ||
− | |||
− | |||
* [http://www.w3.org/TR/REC-CSS2/box.html#padding-properties CSS 2] | * [http://www.w3.org/TR/REC-CSS2/box.html#padding-properties CSS 2] | ||
* [http://www.w3.org/TR/CSS21/box.html#padding-properties CSS 2.1] | * [http://www.w3.org/TR/CSS21/box.html#padding-properties CSS 2.1] | ||
* [http://www.w3.org/TR/css3-box/#padding1 CSS 3] | * [http://www.w3.org/TR/css3-box/#padding1 CSS 3] | ||
+ | |||
+ | == Browser Compatibility == | ||
+ | |||
== See Also == | == See Also == | ||
* [http://www.blooberry.com/indexdot/css/properties/padding/paddingleft.htm Blooberry Padding-Left] | * [http://www.blooberry.com/indexdot/css/properties/padding/paddingleft.htm Blooberry Padding-Left] |
Latest revision as of 15:40, 13 December 2006
Contents
Summary
This property controls the size of the left padding of an element's rendering box. Negative values are not allowed.
- Initial value: 0
- Applies to: all elements
- Inherited: no
- Percentages: n/a
- Media: visual
- Computed value: 0
Syntax
Ext/Doc: element { padding-left: value } In-Line: <blockquote STYLE="padding-left: value">This is a test document</blockquote>
Legal Values
inherit
- Explicitly sets the value of this property to that of the parent.
length
- Refers to either an absolute measurement or a relative measurement based on the current element's font size.
percentage
- Refers to a percentage of the width of the current element's containing block.
Mozilla Recommended Values
Usage Examples
Ext/Doc: blockquote { padding-left: 3em } In-Line: <blockquote STYLE="padding-left: 3em">This is a test document</blockquote>