Gets or sets the amount of space to insert between the object and its margin or, if there is a border, between the object and its border.
HRESULT IHTMLRuleStyle::get_padding(BSTR *p);HRESULT IHTMLRuleStyle::put_padding(BSTR v);
- Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
- BSTR that specifies one of the values listed in Possible Values.
length 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 Length Units.
percentage Integer, followed by a %. The value is a percentage of the width of the parent object.
Returns S_OK if successful, or an error value otherwise.
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
absoluteIHTMLRuleStyle::position or layout to use this property. Element layout is set by providing a value for the IHTMLRuleStyle::height property or the IHTMLRuleStyle::width property.
CSS Enhancements in Internet Explorer 6