title: select all first occurrances of p after h
body: <p>I would like to select the first occurrance of <code>&lt;p&gt;</code> after each <code>&lt;h1&gt;</code> and <code>&lt;h2&gt;</code> when all these tags are sibligs (i.e. all belong to the same div). Paragraph does not necessarily follow the header immediately; there could be some images, or tables, or other elements in between.
  The aim is to then style the first letter of such paragraphs. I do not want to use javascript or jQuery. Is this possible with css selectors only?</p>
  
  <p>For example I would have something like:</p>
  
  <pre><code>&lt;div&gt;
  &lt;h1&gt;Bla&lt;/h1&gt;
  &lt;p class="Testo"&gt;BlaBla.&lt;/p&gt; &lt;!-- #1 --&gt;
  &lt;p class="Testo"&gt;BlaBla.&lt;/p&gt; &lt;!-- #2 --&gt;
  &lt;h2&gt;BlaBlaBla&lt;/h2&gt;
  &lt;p class="Testo"&gt;BlaBla.&lt;/p&gt; &lt;!-- #3 --&gt;
  &lt;h2&gt;BlaBlaBla&lt;/h2&gt;
  &lt;div&gt;
      &lt;img&gt;
      &lt;p&gt;&lt;/p&gt;                  &lt;!-- #4 --&gt;
  &lt;/div&gt;
  &lt;p class="Testo"&gt;BlaBla.&lt;/p&gt; &lt;!-- #5 --&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And I would like to select #1, #3 and #5. I am lost by now and appreciate some help.</p>
  
  <p>If I use: <code>h1 + p.Testo:first-letter</code> and <code>h2 + p.Testo:first-letter</code> it does not select <strong>#5</strong> because it is not following the header immediately.</p>
  
  <p>If I use: <code>h1 ~ p.Testo:first-letter</code> and <code>h2 ~ p.Testo:first-letter</code> it selects also <strong>#2</strong> because that is also a sibling of <code>h1</code>.</p>
  
  <p>If I use <code>h1 &gt; p.Testo:first-letter</code> and <code>h2 &gt; p.Testo:first-letter</code> it selects <strong>none</strong> of them because they are siblings and not children; same for descendant selector <code>h1 p.Testo:first-letter</code> and <code>h2 p.Testo:first-letter</code></p>
  
  <p>If I use: <code>h1 ~ p.Testo:first-of-type:first-letter</code> and <code>h2 ~ p.Testo:first-of-type:first-letter</code> it selects only <strong>#1</strong>...</p>