CSS all properties
Examples
Modify all the elements of its parent element or attribute to the initial value:
div {
background-color: yellow;
color: red;
all: initial;
}
background-color: yellow;
color: red;
all: initial;
}
Definitions and use
all property is used to reset all the properties, in addition to unicode-bidi and direction.
Defaults: | none |
---|---|
inherit: | no |
Animation: | no. Read animatable |
version: | CSS3 |
JavaScript syntax: | object .style.all = "initial" |
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Figures in the table represent the minimum supported browser version number of the property.
Attributes | ||||||
---|---|---|---|---|---|---|
all | 37.0 | not support | not support | 27.0 | not support | 24.0 |
CSS Syntax
all: initial|inherit|unset;
Property Value
value | description |
---|---|
initial | Modify the value of all the elements of its parent element or attribute initialization values |
inherit | Modify the value of all the elements of the parent element or attribute value of parent element |
unset | Modify the value of all the elements of the parent element or attribute value of the parent element (if any inheritance) or initial value |