CSS all property

Example

Modify the attributes of all elements or their parent elements to their initial values:

div {
    background-color: yellow;
    color: red;
    all: initial;
}

Try it Yourself »

Definition and use

The "all" property is used to reset all properties, except unicode-bidi and direction.

Default Value: none
Inherited: None
animation: no。 readinganimatable
version: CSS3
JavaScript Syntax: object.style.all="initial"

Browser Support

The numbers in the table indicate the lowest browser version numbers that support this property.

Property
all 37.0 Not supported Not supported 27.0 Not supported 24.0

CSS Syntax

all: initial|inherit|unset;

Property value

Value Description
initial Modify the values of all element attributes or parent elements to their initial values
inherit Modify the values of all element attributes or parent elements to the values of their parent elements
unset Modify the values of all element attributes or parent elements to the values of their parent elements (if inherited) or their initial values
other extensions