Gets the bottom position of the object in relation to the bottom of the next positioned object in the document hierarchy.
HRESULT IHTMLCurrentStyle::get_bottom(VARIANT *p);
- Pointer to a variable of type VARIANT of type VT_BSTR that receives one of the values listed in Possible Values.
auto Default. Default position, according to the regular HTML layout of the page. 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 Reference.
percentage Integer, followed by a percent sign (%). The value is a percentage of the height of the parent object.
Returns S_OK if successful, or an error value otherwise.
The IHTMLCurrentStyle::bottom attribute should be used only when the IHTMLCurrentStyle::position attribute is set; otherwise, the value of the IHTMLCurrentStyle::bottom attribute is ignored.
Because the value of the IHTMLCurrentStyle::bottom property is a string, the property cannot be used to calculate the position of the object in the document; instead, the IHTMLStyle2::pixelBottom property or the IHTMLStyle2::posBottom property should be used.
For more information about how to access the dimension and location of objects on the page through the Dynamic HTML (DHTML) object model, see Measuring Element Dimension and Location with CSSOM in Internet Explorer 9.