CSS all property
Example
Set the properties of all elements or their parent elements to their initial values:
div
{
background-color:
yellow;
color:
red;
all:
initial;
}
Try it »
Definition and usage
The all property is used to reset all properties, except unicode-bidi and direction.
| Default value: | none |
|---|---|
| Inherited: | None |
| Animatable: | no. Read animatable |
| Version: | CSS3 |
| JavaScript syntax: | object.style.all="initial" |
Browser support
The numbers in the table indicate the lowest browser version that supports the property.
| property | ||||||
|---|---|---|---|---|---|---|
| all | 37.0 | Not supported | Not supported | 27.0 | Not supported | 24.0 |
CSS Syntax
all: initial|inherit|unset;
Attribute values
| Value | Description |
|---|---|
| initial | Change the value of all element properties or the parent element to its initial value |
| inherit | Change the value of all element properties or the parent element to the value of its parent element |
| unset | Change the value of all element properties or the parent element to the value of its parent element (if inherited) or to its initial value |