Export (0) Print
Expand All
top
Expand Minimize
This topic has not yet been rated - Rate this topic

boxSizing property

Sets or retrieves the box model to use for object sizing.

CSS3 Basic User Interface Module, Section 7.1Internet Explorer 8

Syntax

HRESULT value = object.put_boxSizing( v);HRESULT value = object.get_boxSizing(* p);

Property values

Type: BSTR

content-box (content-box)

Default. The specified IHTMLCSSStyleDeclaration::width and IHTMLCSSStyleDeclaration::height apply to the width and height respectively of the content box of the element. The IHTMLCSSStyleDeclaration::padding and IHTMLCSSStyleDeclaration::border of the element are drawn outside this area.

border-box (border-box)

The specified IHTMLCSSStyleDeclaration::width and IHTMLCSSStyleDeclaration::height determine the border box of the element. Any IHTMLCSSStyleDeclaration::padding or IHTMLCSSStyleDeclaration::border specified on the element is drawn inside the remaining area. The content box is computed by subtracting the IHTMLCSSStyleDeclaration::padding or IHTMLCSSStyleDeclaration::border widths of the respective sides from the specified width and height.

This is the default behavior of IHTMLCSSStyleDeclaration::width and IHTMLCSSStyleDeclaration::height in IE5 mode for replaced elements and input elements, such as buttons.

String format

content-box | border-box

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Standards information

Remarks

This property requires Windows Internet Explorer to be in IE8 Standards mode rendering.

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.