msBoxPack property
Do not use. This property has been replaced by the -ms-flex-pack property, and is no longer recognized by Windows Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly. Gets or sets a value that specifies how excess space is distributed (along the axis defined by the IHTMLCSSStyleDeclaration2::msBoxOrient property) between child elements of the object.
This property is read/write.
Syntax
HRESULT put_msBoxPack(
[in] DOMString val
);
HRESULT get_msBoxPack(
[out] DOMString **ptr
);
Property values
Type: DOMString
String format
start | end | center | justify
CSS information
Applies To | box elements |
Media | visual |
Inherited | no |
Initial Value | start |
Standards information
- Flexible Box Layout Module, Section 6
Remarks
Be aware that these are IHTMLCurrentStyle2::writingMode dependent keywords; the starting and ending edges of the parent element and child elements depend on the layout direction. For instance, for a left-to-right layout, the starting edge is the left edge of the parent element, for a top-to-bottom layout the starting edge is the top edge, and so on. Likewise, the ending edge of a child element is the right edge in a left-to-right layout, the bottom edge in a top-to-bottom layout, and so on.
Examples
The following ID selector has added the IHTMLCSSStyleDeclaration2::msBoxPack property and set it to justify:
<style type="text/css">
#myFlexbox
{
display: -ms-box;
-ms-box-pack: justify;
background: grey;
border: blue;
}
</style>
Requirements
Minimum supported client |
Windows 7 |
Minimum supported server |
Windows Server 2008 R2 |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |