CSS all Property

Description

The all property is a shorthand that resets all CSS properties except direction and unicode-bidi. It only accepts the CSS-wide keywords.

Initial value
See individual properties
Applies to
See individual properties
Inherited
See individual properties
Media
See individual properties
Computed value
See individual properties
Animatable
See individual properties
CSS Version
CSS3
JavaScript syntax
object.style.all

Syntax

Formal syntax: initial | inherit | unset 

all: initial;
all: inherit;
all: unset;

Values

  • initialThis keyword will change all the properties applying to the element or the element to their initial value.
  • inheritThis keyword will change all the properties applying to the element or the element to their parent value.
  • unsetThis keyword will change all the properties applying to the element or the element to their parent value if they are inheritable or to their initial value if not.

Example

.class {
   all:unset;
}

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
XX3727249.1
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
373727249.34.0