We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

:-moz-list-number Redirect 1

« 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

Last updated by: Sheppy,