enumeration-format

The format string that should be used for generating an enumerator. ‘%p’ will be filled with the content specified in enumerator-style. ‘%*’ will be replaced with the contents of parent lists. ‘%%’ will be replaced by %.

Availability

Available in: List

Type

String

Default value

%p

Inherited

No.

Example

// Enumerates an unordered list with '-'
list-unordered {
  enumeration-format: "-"
}

// Enumerates an unordered list with '1.', '1.1', '1.1.1' etc.
list-ordered {
  // First level: start with 1., 2., 3.
  enumeration-format: "%p."
}

list-ordered list-ordered {
  // Second level: append 1. with ".1" to 1.1
  enumeration-format: "%*%p"
}

list-ordered list-ordered list-ordered {
  // Third level: append 1.1 with ".1" to 1.1.1
  enumeration-format: "%*.%p"
}