i have the following HTML
<div class="parentt">
        <h2>sdsd</h2>
        <p>p 1</p>
        <p>p 2</p>
        <p>p 3</p>
</div>
so if i want to style all paragraphs inside i will do
.parentt p:nth-of-type {
    border:1px solid red;
}
but if i have nested paragraphs for example
<div class="parentt">
        <h2>sdsd</h2>
        <p>p 1</p>
        <p>p 2</p>
        <p>p 3</p>
       <div class="my-div-with-nested-p">
          <p>nested p 1</p>
         <div> <p>nested p 2</p></div>
       </div>
  </div>
then my css code does not work.How can i style the nested paragraphs - nested p 1 and nested p 2 automatically throught the parent like in the first case ?
 
    