Back to Content

-moz-float-edge

files/en-us/web/css/reference/properties/-moz-float-edge/index.md

latest1.2 KB
Original Source

{{Non-standard_header}}{{Deprecated_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: unset;

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