title: How to create segments in container div
body: <p>So I want to achieve the following which i drew:</p>
  <p><a href="https://i.stack.imgur.com/IAeBj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IAeBj.png" alt="enter image description here" /></a></p>
  <p>and the green div is the outer div and inside the div, there is a div which i plan to use for a map. Now the problem I'm facing now is how to I place the div at the bottom of the outer div? I want it to be somehow locked in that position so when I resize the browser, it would stay at its current position and the map div won't move around.</p>
  <p>I tried using &quot;margin-top: 59vh&quot; but when i adjust the height of my browser it overflows and becomes weird:</p>
  <p><a href="https://i.stack.imgur.com/NnsRq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NnsRq.png" alt="enter image description here" /></a></p>
  <p>Would appreciate some help on this.</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>* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }
  
  html {
      height: 100%;
      font-size: 1vw;
  }
  
  body {
      height: 100%;
  }
  
  #outer {
      border: 1px solid black;
      height: 90vh;
      width: 35%;
  }
  
  #map_div {
      border: 1px solid blue;
      height: 300px;
      margin-top: 59vh;
  }</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;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
    &lt;link rel="stylesheet" href = "style.css"&gt;
    &lt;title&gt;Document&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id = "outer"&gt;
      &lt;div id = "map_div"&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>