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.

  • Initial valuenone
  • Applies toAll elements
  • InheritedNo
  • MediaAll
  • Computed valueAs specified value
  • AnimatableNo
  • CSS VersionCSS3
  • JavaScript syntaxobject.style.stringSet
Formal syntax: [[ <identifier> <content-list>] [, <identifier> <content-list>]* ] | none

string-set: [value];
  • <identifier>
  • <content-list>
  • none
.class {
   string-set: header "Chapter " counter(header) ": " self; 
}
?Firefox?Explorer?Chrome?Safari?Opera


Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.