title: How to build rectangles on top of each other in html
body: <p>I have built this html</p>
  <p>aiming to get this structure</p>
  <p><a href="https://i.stack.imgur.com/RpheD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RpheD.png" alt="enter image description here" /></a></p>
  <p>my html</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-html lang-html prettyprint-override"><code>&lt;div style="border: solid;"&gt;
    Rec 1
  
  &lt;/div&gt;
  &lt;div style="border: solid;width:20%;display: inline-block;margin:0;padding:0;"&gt;
    Rec 2
  &lt;/div&gt;
  &lt;div style="border: solid;width:60%;display: inline-block;margin:0;padding:0;"&gt;
    Rec 3
  &lt;/div&gt;
  &lt;div style="border: solid;width:20%;display: inline-block;margin:0;padding:0;"&gt;
    Rec 4
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>but my code gives me this</p>
  <p><a href="https://i.stack.imgur.com/JjEE6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JjEE6.png" alt="enter image description here" /></a></p>
  <p>How to fix it and get desired design</p>