CSS all Property


In CSS, the all property is a shorthand property that is used to set all the element's values to their original or inherited values, or in certain situations, to another spreadsheet origin. This property is used to clear all CSS properties from a document.

Syntax

Example

Preview

Property Values

Value Description
initial This parameter is used to establish the default value for all properties.
inherit This parameter is used to establish the default value for all properties.
unset This option specifies the default value for all attributes. If they are only inheritable, or if they are not, they will revert to their initial value.
revert Specifies behavior that is dependent on the origin of the stylesheet to which the declaration belongs:

Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
all 37.0 27.0 9.0 79.0 24.0