`-moz-float-edge` CSS property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{Non-standard_header}}
The non-standard **-moz-float-edge** CSS property specifies whether the height and width properties of the element include the margin, border, or padding thickness.
Syntax
css
/* Keyword values */
-moz-float-edge: content-box;
-moz-float-edge: margin-box;
/* Global values */
-moz-float-edge: inherit;
-moz-float-edge: initial;
-moz-float-edge: revert;
-moz-float-edge: revert-layer;
-moz-float-edge: unset;Values
This property is specified as one of the following keyword values:
content-box- : The height and width properties include the content, but not the padding, border or margin.
margin-box- : The height and width properties include the content, padding, border and margin.
Formal definition
{{CSSInfo}}
Formal syntax
{{CSSSyntaxRaw(-moz-float-edge = content-box | margin-box)}}
Examples
HTML
html
<div class="box">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>CSS
css
.box {
display: block;
height: 5px;
margin: 0.5em auto;
color: gray;
-moz-float-edge: margin-box;
box-sizing: border-box;
}Result
{{ EmbedLiveSample('Examples') }}
Specifications
Not part of any standard.
Browser compatibility
{{Compat}}
See also
- Firefox bug 432891