Sets or retrieves the minimum width for an element.
Integer value = object.put_minWidth(Variant v);Integer value = object.get_minWidth(Variant* sMinWidth);
The minimum width for an element.
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 % 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 IHTMLCSSStyleDeclaration::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.
|Applies To||All elements|
- CSS 2.1, Section 10.4
IHTMLCSSStyleDeclaration::minWidth was introduced in Windows Internet Explorer 7.
The IHTMLCSSStyleDeclaration::minWidth/IHTMLCSSStyleDeclaration::maxWidth 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.
Minimum supported client
|Windows XP [desktop apps only]|
Minimum supported server
|Windows 2000 Server [desktop apps only]|
Build date: 11/12/2012