title: CSS - greater than selector - select items greater than N
body: <p>I have several <code>&lt;p&gt;</code> elements in my HTML body. I only want to show the first two paragraphs, and set <code>display:none</code> to all paragraphs after. Why does the following code not work?</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;
      &lt;style type="text/css"&gt;
          p:gt(2) { display:none; }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;p&gt;1&lt;/p&gt;
      &lt;p&gt;2&lt;/p&gt;
      &lt;p&gt;3&lt;/p&gt;
      &lt;p&gt;4&lt;/p&gt;
  &lt;/body&gt; 
  
  &lt;/html&gt; 
  </code></pre>
  
  <p>My code still shows all 4 paragraph elements in Chrome web browser.</p>
  
  <p>How do I correct my code to achieve the objective I originally stated?</p>