Want to share your CSS expertise with others? Apply to the MDN Fellowship by April 1! http://mzl.la/MDNFellowship

mozilla
Your Search Results

    :-moz-list-number

    « CSS « CSS Reference « Mozilla Extensions

    Non-standard
    This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

    Summary

    The ::-moz-list-number pseudo-class lets you customize the appearance of numbers on list items (<li>) occurring in ordered lists (<ol>).

    Syntax

    li::-moz-list-number { style properties }
    

    Examples

      <style type="text/css">
        li::-moz-list-number {
          font-style: italic;
          font-weight: bold;
        }
      </style>
    
      <ol>
        <li>First item</li>
        <li>Second item</li>
        <li>Third item</li>
      </ol>
    

    Gives the following result:

    moz-list-number.png
    View the live example

    Document Tags and Contributors

    Contributors to this page: Sheppy, velvel53
    Last updated by: velvel53,