all

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

Revision Content

The CSS all shorthand property resets all properties, but {{cssxref("unicode-bidi")}} and {{cssxref("direction")}} to their default 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>The CSS <code>all</code> shorthand property resets all properties, but {{cssxref("unicode-bidi")}} and {{cssxref("direction")}} to their default value.</p>
<p>{{cssbox("all")}}</p>
<h2>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