title: How do i make it so i have 4 rows and the result class is on the top using flexbox?
body: <p>I am trying to make a very simple calculator, but its just not coming out the way i want it to. any ideas? It should be 4 rows a with the 0 on top to display result later.</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;
  }
  
  body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border: 2px solid red;
  }
  
  .square {
    border: 2px solid black;
    width: 7%;
    text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="result"&gt;
    &lt;h1&gt;0&lt;/h1&gt;
  &lt;/div&gt;
  
  &lt;div id="container"&gt;
    &lt;div class="square row1"&gt;
      &lt;h2&gt;0&lt;/h2&gt;
    &lt;/div&gt;
    &lt;div class="square row1" "&gt;&lt;h2&gt;1&lt;/h2&gt;&lt;/div&gt;
  &lt;div class="square row1 ""&gt;
      &lt;h2&gt;2&lt;/h2&gt;
    &lt;/div&gt;
    &lt;div class="square row1" "&gt;&lt;h2&gt;3&lt;/h2&gt;&lt;/div&gt;
  &lt;div class="square row1 ""&gt;
      &lt;h2&gt;4&lt;/h2&gt;
    &lt;/div&gt;
  
    &lt;div class="square row2" "&gt;&lt;h2&gt;5&lt;/h2&gt;&lt;/div&gt;
  &lt;div class="square row2 ""&gt;
      &lt;h2&gt;6&lt;/h2&gt;
    &lt;/div&gt;
    &lt;div class="square row2" "&gt;&lt;h2&gt;7&lt;/h2&gt;&lt;/div&gt;
  &lt;div class="square row2 ""&gt;
      &lt;h2&gt;8&lt;/h2&gt;
    &lt;/div&gt;
    &lt;div class="square row2" "&gt;&lt;h2&gt;9&lt;/h2&gt;&lt;/div&gt;
  
  &lt;div class="square row3 ""&gt;
      &lt;h2&gt;C&lt;/h2&gt;
    &lt;/div&gt;
    &lt;div class="square row3" "&gt;&lt;h2&gt;.&lt;/h2&gt;&lt;/div&gt;
  &lt;div class="square row3 ""&gt;
      &lt;h2&gt;+/-&lt;/h2&gt;
    &lt;/div&gt;
    &lt;div class="square row3" "&gt;&lt;h2&gt;*&lt;/h2&gt;&lt;/div&gt;
  &lt;div class="square row3 ""&gt;
      &lt;h2&gt;\&lt;/h2&gt;
    &lt;/div&gt;
  
    &lt;div class="square row4" "&gt;&lt;h2&gt;-&lt;/h2&gt;&lt;/div&gt;
  &lt;div class="square row4 ""&gt;
      &lt;h2&gt;+&lt;/h2&gt;
    &lt;/div&gt;
    &lt;div class="square row4" "&gt;&lt;h2&gt;=&lt;/h2&gt;&lt;/div&gt;  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>this is just extra words bc it required more details</p>