CSS String-Set Property
CSS 1 |
CSS 2 |
CSS 3 |
|
|
|
|
Description
The ‘string-set’ property accepts a comma-separated list of named strings. Each named string is followed by a content list that specifies which text to copy into the named string. Whenever an element with value of ‘string-set’ different from ‘none’ is encountered, the named strings are assigned their respective value.
Syntax
string-set: [value1] [value2];
Possible values
- [identifier]
- [content-list]
- none
Initial Value
none
Applies To
All elements
Inherited
No
Media
All
Example
h1 {
string-set: header "Chapter "
counter(header) ": " self;
}
Loading Twitter