CSS initial keyword
Example
Set the text color of the <div> element to red, but retain the initial color of the <h1> element:
div { color: red; } h1 { color: initial; }
Definition and Usage
initial
Keywords are used to set CSS properties to their default values.
initial
Keywords can be used for any CSS property and any HTML element.
Version: | CSS3 |
---|---|
JavaScript Syntax: | object.property="initial" |
Browser Support
The numbers in the table indicate the first browser version that fully supports this property.
keyword | Chrome | IE | Firefox | Safari | Opera |
---|---|---|---|---|---|
initial | 1.0 | 12.0 | 19.0 | 1.2 | 15.0 |
Γραμματική CSS
property: initial;
Σχετικές σελίδες
CSS inherit κλειδί:inherit κλειδί