descriptor

@counter style/symbols — CSS reference

Supplies the ordered symbol sequence for systems such as cyclic, fixed, numeric and alphabetic. Symbols can be strings or identifiers; support for image symbols is not established here. Their interpretation depends on system. Numeric needs at least two symbols, with the first representing zero.

Formal Syntax & Structure

css syntaxcss
@counter-style demo { symbols: A B; }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>@counter-style/symbols</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}body{font:16px/1.5 sans-serif}#a{margin:16px;padding:8px 8px 8px 80px;background:white}li{padding-left:4px}@counter-style demo{system:numeric;symbols:A B;suffix:": "}#a{list-style:demo inside}</style><body><ol id="a"><li>ONE</li><li>TWO</li><li>THREE</li></ol></body></html>
CSS Reference