::-moz-list-number

Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The ::-moz-list-number CSS pseudo-element is a Mozilla extension that represents the marker (typically a number) of a list item (

  • ) in an ordered list (
      ).

  • Syntax

    css
    li::-moz-list-number {
      /* ... */
    }
    

    Examples

    HTML

    html
    1. First item
    2. Second item
    3. Third item

    CSS

    css
    li::-moz-list-number {
      font-style: italic;
      font-weight: bold;
    }
    

    Result

    Specifications

    Not part of any standard.

    Browser compatibility

    See also