title: CSS to add leading zero to an ordered list custom counter
body: <h1>What I have:</h1>
  
  <p>An ordered list with a custom counter:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>ol {
    /*list-style-type:decimal-leading-zero;*/
    list-style: none;
    padding-left: 0px;
    counter-reset: item;
  }
  
  ol&gt;li {
    display: table;
    counter-increment: item;
  }
  
  ol&gt;li:before {
    display: table-cell;
    padding: 0 0.5em 0 0;
    content: counter(item) ".";
    font-weight: bold;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ol&gt;
    &lt;li&gt;List item one.&lt;/li&gt;
    &lt;li&gt;List item two.&lt;/li&gt;
    &lt;li&gt;List item three.&lt;/li&gt;
    &lt;li&gt;List item four.&lt;/li&gt;
    &lt;li&gt;List item five.&lt;/li&gt;
    &lt;li&gt;List item six.&lt;/li&gt;
    &lt;li&gt;List item seven.&lt;/li&gt;
    &lt;li&gt;List item eight.&lt;/li&gt;
    &lt;li&gt;List item nine.&lt;/li&gt;
    &lt;li&gt;List item ten.&lt;/li&gt;
  &lt;/ol&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <h1>What I need:</h1>
  
  <p>A leading zero before any list item numbered less than 10.</p>
  
  <p>I.e. 01, 02, 03, 04, 05, 06, 07, 08, 09, 10.</p>
  
  <h1>My question:</h1>
  
  <p>How can I achieve the required leading zero via CSS?</p>