Comment in italics are information about how to use part of the template
Summary
Description of the property. It must start by "The xyz
CSS property" followed by a one-sentence description. The first paragraph of this introduction will be used by default as the description of the page.
{{note("Place holder for any special messages")}} But don't add several notes. It should be really important, or be part of the description!
- {{Xref_cssinitial()}} {{Cssxref("none")}} / {{Cssxref("auto")}} / {{Cssxref("normal")}}
- Applies to all elements
- {{Xref_cssinherited()}} yes / no
- Percentages relative to the xyz value. Remove this line if percentages are not allowed.
- Media {{Xref_cssvisual()}}
- {{Xref_csscomputed()}} all of the Earth
- {{ Xref_cssanimatable() }} yes / no
Syntax
For shorthand properties:
The formal syntax must be taken from the spec (eventually adapted to support later extension to the formal syntax grammar). It is an important tool to get precise syntax information for advanced users.
Formal syntax: value1 | value2 | {{Cssxref("", "otherproperty")}} | {{Xref_csslength()}} | {{Cssxref("inherit")}}
For longhand properties:
Formal syntax: value1 | value2 | {{Cssxref("", "otherproperty")}} | {{Xref_csslength()}} | {{Cssxref("inherit")}}
property: value1 property: value2 property: 12.8em /* A valid length */ property: inherit <---- To remember this is a possible value
The second part of the is a simple translation of the what the formal syntax tells. It is aimed at medium-level users that will not understand well the formal syntax.
Values
Each element of the formal syntax must be explained
-
value_1
- Is a keyword meaning...
-
value_2
{{ Non-standard_inline() }} {{experimental_inline()}} - Is a keyword meaning
Examples
{{CSSLiveSample('background.html')}} Add this only if there is such an exampe. No dead link here
elementName { property: value; thisis: "example"; dream: 10000000mm; love: "danger"; }
Specifications
Exclusively use this standard table. Place older spec on the bottom. Use the templates SpecName() for the name and Spec2() for the status. That way, when the spec progress on the standard track, or move, the table content will be automatically adapted.
Specification | Status | Comment |
---|---|---|
{{ SpecName('CSS3 Animations', '#fake-link', 'fake-value') }} | {{ Spec2('CSS3 Animations') }} | No change from CSS 2.1. |
{{ SpecName('CSS2.1', '#fake-link', 'fake value') }} | {{ Spec2('CSS2.1') }} |
Browser compatibility
(See Compatibility tables for more information)
{{CompatibilityTable()}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | {{CompatUnknown()}} | {{CompatUnknown()}} | 100 | {{CompatUnknown()}} | {{CompatUnknown()}} |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatUnknown()}} | {{CompatUnknown()}} | 100 | {{CompatUnknown()}} | {{CompatUnknown()}} |
See also
- Links of link of related properties: {{Cssxref("example-property")}}
- Links to article showing how to use the property in context: "Using … article"
- Very good external links. Don't be afraid of external links, but they should be outstanding, not only bring one single details.