MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 479139 of all

  • Revision slug: Web/CSS/all
  • Revision title: all
  • Revision id: 479139
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{SeeCompatTable}}{{CSSRef("CSS Box")}}

The CSS all shorthand property resets all properties, but {{cssxref("unicode-bidi")}} and {{cssxref("direction")}} to their initial or inherited value.

{{cssbox("all")}}

Syntax

Formal syntax: {{csssyntax("all")}}
all: initial
all: inherit
all: unset

Values

initial
This keyword indicates to change all the properties applying to the element or the element to their initial value. {{cssxref("unicode-bidi")}} and {{cssxref("direction")}} values are not affected.
inherit
This keyword indicates to change all the properties applying to the element or the element to their parent value. {{cssxref("unicode-bidi")}} and {{cssxref("direction")}} values are not affected.
unset
This keyword indicates to change all the properties applying to the element or the element to their parent value if they are inheritable or to their initail value if not. {{cssxref("unicode-bidi")}} and {{cssxref("direction")}} values are not affected.
 

Revision Source

<p>{{SeeCompatTable}}{{CSSRef("CSS Box")}}</p>
<p>The CSS <code>all</code> shorthand property resets all properties, but {{cssxref("unicode-bidi")}} and {{cssxref("direction")}} to their initial or inherited value.</p>
<p>{{cssbox("all")}}</p>
<h2 id="Syntax">Syntax</h2>
<pre class="twopartsyntaxbox">
<a href="/en-US/docs/CSS/Value_definition_syntax" title="CSS/Value_definition_syntax">Formal syntax</a>: {{csssyntax("all")}}</pre>
<pre>
all: initial
all: inherit
all: unset
</pre>
<h3 id="Values" name="Values">Values</h3>
<dl>
  <dt>
    <code>initial</code></dt>
  <dd>
    This keyword indicates to change all the properties applying to the element or the element to their initial value. {{cssxref("unicode-bidi")}} and {{cssxref("direction")}} values are not affected.</dd>
  <dt>
    <code>inherit</code></dt>
  <dd>
    This keyword indicates to change all the properties applying to the element or the element to their parent value. {{cssxref("unicode-bidi")}} and {{cssxref("direction")}} values are not affected.</dd>
  <dt>
    <code>unset</code></dt>
  <dd>
    This keyword indicates to change all the properties applying to the element or the element to their parent value if they are inheritable or to their initail value if not. {{cssxref("unicode-bidi")}} and {{cssxref("direction")}} values are not affected.</dd>
  <dt>
    &nbsp;</dt>
</dl>
Revert to this revision