css at-rules counter-style suffix

The suffix descriptor of the @counter-style rule specifies content that will be appended to the marker representation.

Syntax

/* <symbol> values */
suffix: "";
suffix: ") ";
suffix: url(bullet.png);

Values

<symbol>

Specifies a <symbol> that is appended to the marker representation. It may be a <string>, <image>, or <custom-ident>.

Examples

Setting a suffix for a counter

HTML

<ul class="choices">
  <li>One</li>
  <li>Two</li>
  <li>Three</li>
  <li>None of the above</li>
</ul>

CSS

@counter-style options {
  system: fixed;
  symbols: A B C D;
  suffix: ") ";
}

.choices {
  list-style: options;
}

See also