-moz-box-sizing

  • Raccourci de la révision : CSS/-moz-box-sizing
  • Titre de la révision : -moz-box-sizing
  • ID de la révision : 188812
  • Créé :
  • Créateur : Fredchat
  • Version actuelle ? Non
  • Commentaire /* Préparation de la traduction */

Contenu de la révision

{{template.CSSMozExtensionRef()}} {{template.Traduction_en_cours("CSS:-moz-box-sizing")}}

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.

  • Initial value: content-box
  • Applies to: all elements
  • Inherited: no
  • Percentages: N/A
  • Computed value: as specified

Syntax

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

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 .

Examples

.exampleone {
	-moz-box-sizing: padding-box;
}
{{ wiki.languages( { "en": "en/CSS/-moz-box-sizing", "pl": "pl/CSS/-moz-box-sizing" } ) }}

Source de la révision

<p> 
{{template.CSSMozExtensionRef()}}
{{template.Traduction_en_cours("CSS:-moz-box-sizing")}}
</p>
<h3 name="Summary"> Summary </h3>
<p><code>-moz-box-sizing</code> 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.
</p>
<ul><li> Initial value: content-box
</li><li> Applies to: all elements
</li><li> Inherited: no
</li><li> Percentages: N/A
</li><li> Computed value: as specified
</li></ul>
<h3 name="Syntax"> Syntax </h3>
<pre class="eval">-moz-box-sizing: content-box | border-box | padding-box 
</pre>
<h3 name="Values"> Values </h3>
<dl><dt> content-box</dt><dd> 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.
</dd><dt> padding-box</dt><dd>  The width and height properties include the padding size, and do not include the border or margin.
</dd><dt> border-box</dt><dd>  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 <a class="external" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dhtmltechcol/dndhtml/cssenhancements.asp">.
</a></dd></dl><a class="external" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dhtmltechcol/dndhtml/cssenhancements.asp">
<h3 name="Examples"> Examples </h3>
<pre>.exampleone {
	-moz-box-sizing: padding-box;
}
</pre>
{{ wiki.languages( { "en": "en/CSS/-moz-box-sizing", "pl": "pl/CSS/-moz-box-sizing" } ) }}</a>
Revenir à cette révision