Gets the minimum width for an element.
HRESULT IHTMLCurrentStyle4::get_minWidth(VARIANT *p);
- Pointer to a variable of type VARIANT of type VT_BSTR that receives the minimum width for an element.
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 % that specifies a percentage of the containing block width to use as the minimum width of the element. If the width of the containing block is not explicitly set, then the element has no minimum width and the IHTMLCurrentStyle4::minWidth property is interpreted as 0%. For more information on containing blocks and how their widths are computed, see the Cascading Style Sheets, Level 2.1 (CSS2.1) specification.
Returns S_OK if successful, or an error value otherwise.
IHTMLCurrentStyle4::minWidth was introduced in Windows Internet Explorer 7.
The min-width/ max-width attributes apply to floating and absolutely positioned block and inline-block elements, as well as some intrinsic controls. They do not apply to non-replaced inline elements, such as table rows and row/column groups. (A "replaced" element has intrinsic dimensions, such as an img or textArea.)
This property is enabled only under the strict !DOCTYPE.