Sets or retrieves the amount of space to insert between the object and its margin or, if there is a border, between the object and its border.
Integer value = object.put_padding( v);Integer value = object.get_padding(* sPadding);
Floating-point number, followed by an absolute units designator (
pc) or a relative units designator (
px). For more information about the supported length units, see CSS Values and Units Reference.
Integer, followed by a %. The value is a percentage of the width of the parent object.
|Applies To||All elements|
- CSS 2.1, Section 5.5.10
This is a composite property that specifies up to four padding values, in the following order: top, right, bottom, left. If one width value is specified, it is used for all four sides. If two width values are specified, the first is used for the top and bottom borders, and the second is used for left and right borders. If three width values are specified, they are used for top, right/left, and bottom borders, respectively. Negative values are not allowed.
As of Microsoft Internet Explorer 5.5, this property applies to inline elements. With earlier versions of Windows Internet Explorer, inline elements must have an absolute IHTMLCurrentStyle::position or layout to use this property. Element layout is set by providing a value for the IHTMLCurrentStyle::height property or the IHTMLCurrentStyle::width property.
Minimum supported client
|Windows XP [desktop apps only]|
Minimum supported server
|Windows 2000 Server [desktop apps only]|
- CSS Enhancements in Internet Explorer 6