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

Your Search Results


    « CSS « CSS Reference « Mozilla Extensions

    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.


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


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


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

    Gives the following result:

    View the live example

    Document Tags and Contributors

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