The suffix
descriptor of the @counter-style
rule specifies content that will be appended to the marker representation.
The suffix
descriptor of the @counter-style
rule specifies content that will be appended to the marker representation.
/* <symbol> values */ suffix: ""; suffix: ") "; suffix: url(bullet.png);
<symbol>
Specifies a <symbol>
that is appended to the marker representation. It may be a <string>
, <image>
, or <custom-ident>
.
Related at-rule | @counter-style |
---|---|
Initial value | ". " (full stop followed by a space) |
Computed value | as specified |
suffix =
<symbol>
<symbol> =
<string> |
<image> |
<custom-ident>
<image> =
<url> |
<gradient>
<url> =
url( <string> <url-modifier>* ) |
src( <string> <url-modifier>* )
<ul class="choices"> <li>One</li> <li>Two</li> <li>Three</li> <li>None of the above</li> </ul>
@counter-style options { system: fixed; symbols: A B C D; suffix: ") "; } .choices { list-style: options; }
Specification |
---|
CSS Counter Styles Level 3 # counter-style-suffix |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
suffix |
91 | 91 | 33 | No | 77 | No | 91 | 91 | 33 | 64 | No | 16.0 |
list-style
, list-style-image
, list-style-position
symbols()
, the functional notation creating anonymous counter styles
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/@counter-style/suffix