Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/css/@counter-style/suffix/index.md
6520 views
---
title: suffix slug: Web/CSS/@counter-style/suffix page-type: css-at-rule-descriptor browser-compat: css.at-rules.counter-style.suffix
---

{{CSSRef}}

The suffix descriptor of the {{cssxref("@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 {{cssxref("<string>")}}, {{cssxref("<image>")}}, or {{cssxref("<custom-ident>")}}.

Formal definition

{{cssinfo}}

Formal syntax

{{csssyntax}}

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; }

Result

{{ EmbedLiveSample('Setting_a_suffix_for_a_counter')}}

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{Cssxref("list-style")}}, {{Cssxref("list-style-image")}}, {{Cssxref("list-style-position")}}

  • {{cssxref("symbols", "symbols()")}}, the functional notation creating anonymous counter styles