title: Responsive boxes in HTML Email
body: <p>I use <code>ActiveCampaign</code> to send my emails, and recently I started building HTML emails to have better control of the situation.</p>
  
  <p><code>ActiveCampaign</code> automatically sets tables, so I don't need to worry about it, as it conforms a standard HTML to an email HTML.</p>
  
  <p>I should have a responsive row with columns that wrap themselves once the user views the email on a mobile phone.</p>
  
  <p>I'm trying to build some columns inside the email, I tried with flexbox but it constantly giving me errors in Gmail. I even tried with  but it does not wrap content.</p>
  
  <p>Here you can find the full code.
  I highlighted the part where I have issues.</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>.divmain {
    margin: 5px;
    border-radius: 5px;
    -moz-box-shadow: 0px 0 7px 0px #b5b5b5;
    -webkit-box-shadow: 0px 0 7px 0px #b5b5b5;
    box-shadow: 0px 0 7px 0px #b5b5b5;
  }
  
  .divp {
    background-image: url("http://i67.tinypic.com/jhzs0g.png"), linear-gradient(90deg, #FD8571, #EEBD7C);
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    width: auto;
    border-radius: 5px 5px 0px 0px;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 7%;
    padding-bottom: 7%;
    margin-bottom: 0;
    text-align: center;
  }
  
  .divs {
    background-image: url("http://i66.tinypic.com/350w10h.png"), linear-gradient(90deg, #7172fd, #bc7cee);
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    width: auto;
    border-radius: 0px 0px 5px 5px;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 7%;
    padding-bottom: 7%;
    margin-bottom: 0;
    text-align: center;
  }
  
  .divw {
    width: auto;
    padding-left: 7%;
    padding-top: 5%;
    padding-bottom: 1%;
    padding-right: 27%;
    text-align: left;
    border-style: solid;
    border-width: 0px 1px 0px 1px;
    border-color: #cecece;
    margin: 0;
  }
  
  .row {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
  }
  
  .column {
    flex: 33.33%;
    padding-left: 5%;
    padding-right: 5%;
    margin-bottom: 5%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .columnbox {
    width: auto;
    border-radius: 8px;
    padding: 5%;
    text-align: center;
    border-style: solid;
    border-width: 1px;
    border-color: #cecece;
    -moz-box-shadow: 0px 0 7px 0px #b5b5b5;
    -webkit-box-shadow: 0px 0 7px 0px #b5b5b5;
    box-shadow: 0px 0 7px 0px #b5b5b5;
  }
  
  .row::after {
    content: "";
    clear: both;
    display: table;
  }
  
  .border-div {
    border-style: solid;
    border-width: 0px 1px 0px 1px;
    border-color: #cecece;
    border-radius: 0 0 3px 3px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
    &lt;div class="divmain"&gt;
  
      &lt;div class="divp"&gt;
  
        &lt;h1 style="color:white; font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; margin-bottom: 0; padding-bottom: 0.2em"&gt;Sei della Famiglia adesso!&lt;/h1&gt;
  
        &lt;p style="font-size: 1.4em; color: white; line-height: 150%;  font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; margin-top: 0; padding-top: 0"&gt;Moover non è un semplice servizio,&lt;br&gt; è una fantastica community!
        &lt;/p&gt;
  
        &lt;div class="btn" style="background-color: #4E69C2; text-decoration: none; display: inline-block; border: 3px solid #4E69C2; border-radius: 7px; font-size: 1.4em; padding: 0.3em 1em; -webkit-font-smoothing: antialiased; color: #fff;"&gt;&lt;a class="btn-link" href="https://moover.digital/" rel="noopener noreferrer" style="text-decoration: none; color: #fff; font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; font-size: 0.8em; font-weight: 600; -webkit-font-smoothing: antialiased;"
            target="_blank"&gt;Scopri di più ►&lt;/a&gt;&lt;/div&gt;
  
      &lt;/div&gt;
  
      &lt;div class="divw"&gt;
  
        &lt;p style="font-size: 1.1em; line-height: 150%; color: #3b3b3b; font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif"&gt;&lt;b&gt;Oh! Eccoti!&lt;/b&gt;&lt;br&gt; Volevamo informarti che il servizio di Crescita Organica è stato attivato con successo sul profilo @%USERNAME%
        &lt;/p&gt;
  
        &lt;p style="font-size: 1.1em; color: #4E69C2; font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; margin-bottom: 0; padding-bottom: 0.2em;"&gt;&lt;b&gt;Il periodo di Prova Gratuita durerà 7 giorni!&lt;/b&gt;
        &lt;/p&gt;
  
        &lt;p style="font-size: 1em; line-height: 150%; color: #3b3b3b; font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; margin-top: 0; padding-top: 0;"&gt;(Goditeli fino in fondo!)
        &lt;/p&gt;
  
      &lt;/div&gt;
  
  
      &lt;!-- Here is where I have some problems --&gt;
  
  
      &lt;p class="border-div" style="margin: 0; text-align: center; font-size: 1.2em; line-height: 150%; color: #3b3b3b; font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; font-weight: bold; padding-bottom: 1em; padding-top: 1em; "&gt;Questi sono alcuni dati attuali del tuo account&lt;/p&gt;
  
      &lt;div class="row border-div desktop-view" style="padding-top: 1em; padding-right: 5%; padding-bottom: 3em; padding-left: 5%;"&gt;
  
        &lt;div class="column"&gt;
  
          &lt;div class="columnbox" style="margin-right: 5%;"&gt;
            &lt;p style="font-size: 1em; color: rgb(78, 194, 136); font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; margin-bottom: 0; padding-bottom: 0.2em; font-weight: bold; margin-top: 0.2em;"&gt;Follower Attuali&lt;/p&gt;
            &lt;p style="font-size: 350%; color: #4E69C2; font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; margin-bottom: 0; padding-bottom: 0.2em; font-weight: bold; margin-top: 0.2em;"&gt;99.000&lt;/p&gt;
          &lt;/div&gt;
  
        &lt;/div&gt;
  
        &lt;div class="column"&gt;
  
          &lt;div class="columnbox" style="margin-right: 5%;"&gt;
            &lt;p style="font-size: 1em; color: rgb(78, 194, 136); font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; margin-bottom: 0; padding-bottom: 0.2em; font-weight: bold; margin-top: 0.2em;"&gt;Likes Attuali&lt;/p&gt;
            &lt;p style="font-size: 350%; color: #4E69C2; font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; margin-bottom: 0; padding-bottom: 0.2em; font-weight: bold; margin-top: 0.2em;"&gt;99.000&lt;/p&gt;
          &lt;/div&gt;
  
        &lt;/div&gt;
  
        &lt;div class="column"&gt;
  
          &lt;div class="columnbox" style="margin-right: 5%;"&gt;
            &lt;p style="font-size: 1em; color: rgb(78, 194, 136); font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; margin-bottom: 0; padding-bottom: 0.2em; font-weight: bold; margin-top: 0.2em;"&gt;Commenti Attuali&lt;/p&gt;
            &lt;p style="font-size: 350%; color: #4E69C2; font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; margin-bottom: 0; padding-bottom: 0.2em; font-weight: bold; margin-top: 0.2em;"&gt;99.000&lt;/p&gt;
          &lt;/div&gt;
  
        &lt;/div&gt;
  
        &lt;div class="column"&gt;
  
          &lt;div class="columnbox" style="margin-right: 5%;"&gt;
            &lt;p style="font-size: 1em; color: rgb(78, 194, 136); font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; margin-bottom: 0; padding-bottom: 0.2em; font-weight: bold; margin-top: 0.2em;"&gt;Engagement Rate&lt;/p&gt;
            &lt;p style="font-size: 350%; color: #4E69C2; font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; margin-bottom: 0; padding-bottom: 0.2em; font-weight: bold; margin-top: 0.2em;"&gt;99.000&lt;/p&gt;
          &lt;/div&gt;
  
        &lt;/div&gt;
  
      &lt;/div&gt;
  
      &lt;!-- Here is where my problems finishes --&gt;
  
      &lt;div class="divs"&gt;
  
        &lt;h1 style="color:white; font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; margin-bottom: 0; padding-bottom: 0.2em"&gt;Entra nell'Area Personale!&lt;/h1&gt;
  
        &lt;p style="font-size: 1.4em; color: white; line-height: 150%;  font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; margin-top: 0; padding-top: 0"&gt;Visita la tua Area personale cliccando qui.&lt;br&gt; Potrai tenere traccia dei tuoi risultati!
        &lt;/p&gt;
  
        &lt;div class="btn" style="background-color: #4E69C2; text-decoration: none; display: inline-block; border: 3px solid #4E69C2; border-radius: 7px; font-size: 1.4em; padding: 0.3em 1em; -webkit-font-smoothing: antialiased; color: #fff;"&gt;&lt;a class="btn-link" href="https://app.moover.digital/analytics" rel="noopener noreferrer" style="text-decoration: none; color: #fff; font-family:Open Sans,Roboto,San Francisco,Helvetica,Arial,sans-serif; font-size: 0.8em; font-weight: 600; -webkit-font-smoothing: antialiased;"
            target="_blank"&gt;Visita la tua Area ►&lt;/a&gt;&lt;/div&gt;
  
      &lt;/div&gt;
  
    &lt;/div&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The result should be a responsive row that, on the desktop has 4 columns aligned in a unique row. In mobile, it should be a vertical row like in the screenshot below:</p>
  
  <p><a href="https://i.stack.imgur.com/v8dL0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v8dL0.png" alt="enter image description here"></a></p>
  
  <p>Unfortunately, this is not the result that I have, and I absolutely need some help, because in Gmail App from Mobile Phone this is what I got:</p>
  
  <p><a href="https://i.stack.imgur.com/fFxaO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fFxaO.png" alt="enter image description here"></a></p>