boxSizing property
[This documentation is preliminary and is subject to change.]
Sets or retrieves the box model to use for object sizing.
![]() ![]() |
Syntax
HRESULT value = object.put_boxSizing(BSTR v);HRESULT value = object.get_boxSizing(BSTR* p);
Property values
Type: BSTR
content-box (content-box)
Default. The specified width and height apply to the width and height respectively of the content box of the element. The padding and border of the element are drawn outside this area.
border-box (border-box)
The specified width and height determine the border box of the element. Any padding or border specified on the element is drawn inside the remaining area. The content box is computed by subtracting the padding or border widths of the respective sides from the specified width and height.
This is the default behavior of width and height in IE5 mode for replaced elements and input elements, such as buttons.
String format
content-box | border-box
CSS information
| Applies To | All elements |
| Media | visual |
| Inherited | no |
| Initial Value |
Standards information
- CSS3 Basic User Interface Module, Section 7.1
Remarks
This property requires Windows Internet Explorer to be in IE8 Standards mode rendering.
Requirements
Minimum supported client |
Windows XP with SP2 |
Minimum supported server |
Windows Server 2003 |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |
Build date: 1/23/2012
.png)
.png)