title: Label on top on input that uses flex
body: <p>Im using flex to format input on a row format. But right now im trying to put label on top of those inputs and its not working. Im tried using display block and floating left or right but still remains on the left side. How should i style label so it floats to the top of those inputs?</p>
  
  <p>This is the snippet:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.box {
          padding-top: 1rem;
      }
      
      .inside-box {
          max-width: 51rem;
          margin: 0 auto;
      }
      
      .form-group {
          display: flex;
          flex-direction: column;
      }
      
      .row {
          display: flex;
      }
      
      .razao-social-content {
          flex: 2 1 auto;
          /* grow shrink basis */
      }
      
      .rua-content {
          flex: 6 1 auto;
      }
      
      .municipio-content {
          flex: 4 1 auto;
      }
      
      .numero-content {
          flex: auto 1 auto;
      }
      
      .bairro-content {
          flex: 4 1 auto;
      }
      
      .telefone-content {
          flex: 1 1 auto;
      }
      
      .email-content {
          flex: 1 1 auto;
      }
      
      .categoria-content {
          flex: 2 1 auto;
      }
      
      .controlador-content {
          flex: 2 1 auto;
      }
      
      label {}</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="box"&gt;
      &lt;div class="inside-box"&gt;
          &lt;form action="" class="form-group"&gt;
              &lt;div class="row"&gt;
                  &lt;label class="lb" for="name"&gt;Razão Social&lt;/label&gt;
                  &lt;input class="razao-social-content" type="text" id="name" placeholder="Informe o seu nome" required&gt;
                  &lt;label class="lb" for="cnpj_distribuidor"&gt;CNPJ&lt;/label&gt;
                  &lt;input class="cnpj-content" type="text" id="cnpj_distribuidor" placeholder="CNPJ" required&gt;
              &lt;/div&gt;
              &lt;div class="row"&gt;
                  &lt;label for="rua"&gt;Rua&lt;/label&gt;
                  &lt;input class="rua-content" type="text" id="rua" placeholder="Nome da rua" required&gt;
                  &lt;label for="municipio"&gt;Município&lt;/label&gt;
                  &lt;input class="municipio-content" type="text" id="municipio" placeholder="Nome do Município" required&gt;
                  &lt;label for="numero"&gt;Número&lt;/label&gt;
                  &lt;input class="numero-content" type="text" id="numero" placeholder="Número da Residência" required&gt;
              &lt;/div&gt;
              &lt;div class="row"&gt;
                  &lt;label for="bairro"&gt;Bairro&lt;/label&gt;
                  &lt;input class="bairro-content" type="text" id="bairro" placeholder="Nome do Bairro" required&gt;
                  &lt;label for="uf"&gt;Estado&lt;/label&gt;
                  &lt;input class="uf" type="text" id="uf" placeholder="Estado" required&gt;
                  &lt;label for="cep"&gt;CEP&lt;/label&gt;
                  &lt;input class="cep-content" type="text" id="cep" placeholder="CEP" required&gt;
              &lt;/div&gt;
              &lt;div class="row"&gt;
                  &lt;label for="telefone1"&gt;Telefone&lt;/label&gt;
                  &lt;input class="telefone-content" type="text" id="telefone1" placeholder="Telefone" required&gt;
                  &lt;input class="telefone-content" type="text" id="telefone2" placeholder="Telefone" required&gt;
                  &lt;input class="telefone-content" type="text" id="telefone3" placeholder="Telefone" required&gt;
                  &lt;input class="telefone-content" type="text" id="telefone4" placeholder="Telefone" required&gt;
              &lt;/div&gt;
              &lt;div class="row"&gt;
                  &lt;label for="email1"&gt;Email&lt;/label&gt;
                  &lt;input class="email-content" type="text" id="email1" placeholder="Email" required&gt;
                  &lt;input class="email-content" type="text" id="email2" placeholder="Email" required&gt;
                  &lt;input class="email-content" type="text" id="email3" placeholder="Email" required&gt;
                  &lt;input class="email-content" type="text" id="email4" placeholder="Email" required&gt;
              &lt;/div&gt;
  
              &lt;div class="row"&gt;
                  &lt;label for="categoria"&gt;Categorias&lt;/label&gt;
                  &lt;input class="categoria-content" type="text" id="categoria" placeholder="Informe as Categorias" required&gt;
                  &lt;label for="data_constituicao"&gt;Data Da Constituição&lt;/label&gt;
                  &lt;input class="data-content" type="date" id="data_constituicao" placeholder="Data da Constituição" required&gt;
                  &lt;label for="data_cvm"&gt;Data da CVM&lt;/label&gt;
                  &lt;input class="data-content" type="date" id="data_cvm" placeholder="Data do CVM" required&gt;
              &lt;/div&gt;
              &lt;div class="row"&gt;
                  &lt;label for="controlador"&gt;Controlador&lt;/label&gt;
                  &lt;input class="controlador-content" type="text" id="controlador" placeholder="Nome do Controlador" required&gt;
                  &lt;label for="cnpj_controlador"&gt;CNPJ&lt;/label&gt;
                  &lt;input class="cnpj-content" type="text" id="cnpj_controlador" placeholder="CNPJ" required&gt;
              &lt;/div&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This image link shows how I want it to be </p>
  
  <p><a href="https://www.figma.com/file/nuLJYzwr2LtoJxt4rPKDaI/Untitled?node-id=0%3A1" rel="nofollow noreferrer">https://www.figma.com/file/nuLJYzwr2LtoJxt4rPKDaI/Untitled?node-id=0%3A1</a></p>