title: hide last hr within a loop using css
body: <p>I have nested <code>&lt;hr&gt;</code> tag in my html, without using specified traversing, how can I hide the last hr using css but not js? I can skip the loop using js but I want to use pure css, not sure why <code>:nth-of-type(1)</code> hide all the <code>&lt;hr&gt;</code></p>
  
  <pre><code>&lt;div class="modal-body"&gt;
    &lt;div class="row"&gt;
      &lt;div class="m-l-20 m-r-20"&gt;
        &lt;div&gt;&lt;strong class="m-b-10"&gt;Indonesia&lt;/strong&gt;&lt;/div&gt;
        &lt;div&gt;
          &lt;div class="item"&gt;
            &lt;label&gt;
          &lt;div class="item"&gt;
            &lt;label&gt;
              &lt;span&gt;Lazada ID&lt;/span&gt;&lt;/label&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;hr&gt;
      &lt;/div&gt;
      &lt;div class="m-l-20 m-r-20"&gt;
        &lt;div&gt;&lt;strong class="m-b-10"&gt;Malaysia&lt;/strong&gt;&lt;/div&gt;
        &lt;div&gt;
          &lt;div class="item"&gt;
            &lt;label&gt;
              &lt;span&gt;Lazada MY&lt;/span&gt;&lt;/label&gt;
          &lt;/div&gt;
          &lt;div class="item"&gt;
            &lt;label&gt;
              &lt;span&gt;Lelong MY&lt;/span&gt;&lt;/label&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;hr&gt;
      &lt;/div&gt;
      &lt;div class="m-l-20 m-r-20"&gt;
        &lt;div&gt;&lt;strong class="m-b-10"&gt;Others&lt;/strong&gt;&lt;/div&gt;
        &lt;div&gt;
          &lt;div class="item"&gt;
            &lt;label&gt;
              &lt;span&gt;Alibaba&lt;/span&gt;&lt;/label&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;hr&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><a href="https://jsfiddle.net/g59e21ps/1/" rel="nofollow noreferrer">https://jsfiddle.net/g59e21ps/1/</a></p>