Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

CSS all property


May 05, 2021 CSS Reference Manual


Table of contents


CSS all property

Instance

Modify the properties of all elements or their parent elements to an initial value:

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

Try it out . . .

Define and use

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

Default: none
Inherited: 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.

The numbers in the table support the lowest browser version number for this property.

Property
all 37.0 Not supported Not supported 27.0 Not supported 24.0

CSS syntax

all: initial|inherit|unset;

The property value

Value Describe
initial Modifys the value of all element properties or parent elements as their initialized values
inherit Modify the value of all element properties or parent elements to the value of their parent elements
unset Modify the value of all element properties or parent elements as the value of their parent element, if inherited, or their initial value