title: CSS: prevent div Y-axis from moving, when I add text inside <p> which is inside that div
body: <p>Look at the div#1, why it goes down when I add some text inside div#2&gt;p
  I've been trying to figure out, but nothing. I'm new in CSS.  I cannot understand how it works this css3, I'm not a designer I'm a programmer, it gives a lot of headaches.</p>
  <p>p.n: there's no div#1/2 inside the code, both are from the same class: container, Danke</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>.img {
    width: 170px;
    height:150px;
    background: orange;
  }
  .contenedor:not(:first-child) {
    margin: 0 50px;
  }
  .contenedor {
    display: inline-block;
    box-shadow: 0 4px 8px 0px rgba(0,0,0,0.4);
    transition: .1s;
    cursor: pointer;
    resize: none;
    max-width: 170px;
  }
  .contenedor:hover {
    box-shadow: 0 8px 16px 0px rgba(0,0,0,0.4);
  }
  .leyenda {padding:0 10px 20px 10px;}</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Document&lt;/title&gt;
  &lt;/head&gt;
  &lt;style&gt;
  
  &lt;/style&gt;
  &lt;body&gt;
      &lt;div class="contenedor"&gt;
          &lt;div class="img"&gt;DIV #1&lt;/div&gt;
          &lt;div class="leyenda"&gt;
              &lt;h4&gt;&lt;b&gt;John Doe&lt;/b&gt;&lt;/h4&gt;
              &lt;p&gt;&lt;b&gt;This should be up.&lt;/b&gt;&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      
      &lt;div class="contenedor"&gt;
          &lt;div class="img"&gt;DIV #2&lt;/div&gt;
          &lt;div class="leyenda"&gt;
              &lt;h4&gt;&lt;b&gt;Jane Doe&lt;/b&gt;&lt;/h4&gt;
              &lt;p&gt;Post you charge here.Post you 
                charge here.Post you charge here.&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>