CSS all Property
Example
p {
border: 1px solid black;
color: red;
}
.demo1 {
all: inherit;
}
.demo2 {
all: initial;
}
.demo3 {
all: unset;
}
.demo4 {
all: revert;
}
.demo5 {
all: revert-layer;
}
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Meaning
The all shorthand CSS property resets all of an element's properties except unicode-bidi, direction, and CSS Custom Properties.
It can set properties to their initial or inherited values, or to the values specified in another cascade layer or stylesheet origin.
Default value: | none |
Inherited: | No |
Animatable: | No |
Version: | CSS3 |
JavaScript syntax: |
|
Standard Syntax
all: initial|inherit|unset|revert|revert-layer;
Browser Support
Status
Property Values
The following table describes the values of this property:
Value | Description |
---|---|
initial | Sets this property to its default value. |
inherit | If specified, the associated element takes the computed value of its parent element animation-delay property. |
revert | Reverts the cascaded value of the property from its current value to the value the property |
revert-layer | Rollback styles to the ones specified in previous cascade layers. |
unset | Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not. |
Default CSS Property Values
selectors {
all: none;
}