Visit Mozilla.org

CSS:-moz-box-sizing

From MDC

« CSS Reference « CSS Reference:Mozilla Extensions

[edit] Summary

-moz-box-sizing is used by mozilla browsers to alter the default CSS box model used to calculate widths and heights of elements. It is possible to use this property to allow mozilla to emulate the behavior of browsers that do not correctly support the CSS box model specification, though this is not recommended as most standards-compliant browsers do not support this property.

[edit] Syntax

-moz-box-sizing: content-box | border-box | padding-box 

[edit] Values

content-box
This is the default style as specified by the CSS standard. The width and height properties are measured including only the content, but not the border, margin, or padding.
padding-box
The width and height properties include the padding size, and do not include the border or margin.
border-box
The width and height properties include the padding and border, but not the margin. This is the box model used by Internet Explorer when the document is not in Standards-compliant mode [1].

[edit] Examples

.exampleone {
	-moz-box-sizing: padding-box;
}