title: Align two responsive divs, side by side
body: <p>I'm trying to code a simple comparison table, but I can't get what I want to.</p>
  
  <p>An image is worth a thousand words, so I sketched what I would like to get:</p>
  
  <p><a href="https://i.stack.imgur.com/tPpU4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tPpU4.png" alt="enter image description here"></a></p>
  
  <p>Currently, the website page is a single column of divs (represented above by the "other content" area). The grey area underneath the two divs is just to represent the div I'm using to contain them, but I don't need it.</p>
  
  <p>So, basically, I just want to add another div containing two divs that look like in the image, but every suggestion is welcome : )</p>
  
  <p>Also, the divs must be responsive, of course ; )</p>
  
  <p>EDIT 1</p>
  
  <p>As suggested, here's the code that worked so far: I tried many things, anyway once I add some space around the divs, they start to get messed up. Most of it the code is unnecessary, I know : (</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>* {
  color: #fff;
  font-family: "Avenir", sans-serif;
  font-size: 18px;
  
  border 0;
  margin: 0;
  padding: 0;
  }
  
  .container {
  display: flex;
  align-content: center;
  
  margin-bottom: 20px;
  width: 100%;
  
  background-position: center;
  background-size: cover;
  }
  
  .content {
  width: 100%;
  }
  
  .container {
  background-color: hsl(200, 100%, 95%);
  
  margin: auto;
  padding: 0%;
  }
  
  .comparecontainer {
  margin: 0%;
  float: left;
  
  height: auto;
  width: 50%;
  }
  
  .compare {
  padding: 5%;
  
  height: 100%;
  width: 100%;
  }
  
  .lite {
  background-color: hsl(40, 100%, 50%);
  }
  
  .full {
  background-color: hsl(150, 80%, 50%);
  }
  
  
  
  .button {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: ;
  font-size: 18px;
  font-weight: 500;
  line-height: 200%;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  padding: 1% 3%;
  border: 2px solid #fff;
  border-radius: 0;
  outline: none;
  }
  
  .button:hover,
  .button:active {
  background-color: #fff;
  }
  
  .button:hover .lite {
  color: hsl(40, 100%, 50%);
  }
  
  .button .full:hover {
  color: hsl(150, 80%, 50%);
  }
  
  
  
  h2 {
  font-size: 36px;
  margin: auto;
  }
  
  h3 {
  font-size: 21px;
  margin: 2.5% 0;
  }
  
  h4 {
  font-size: 21px;
  margin: 10% 0;
  }
  
  ul {
  list-style: none;
  margin: 5% 0;
  }
  
  li {
  margin: 2.5% 0;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;div class="container"&gt;
  &lt;div class="content"&gt;
  
      &lt;div class="comparecontainer"&gt;
      &lt;div class="compare lite"&gt;
  &lt;h2&gt;First DIV&lt;/h2&gt;
  &lt;h3&gt;Subtitle&lt;/h3&gt;
  
      &lt;ul&gt;
  &lt;li&gt;&lt;b&gt;item&lt;/b&gt; one&lt;/li&gt;
  &lt;li&gt;&lt;b&gt;item&lt;/b&gt; two&lt;/li&gt;
  &lt;li&gt;&lt;b&gt;item&lt;/b&gt; three&lt;/li&gt;
  &lt;li&gt;&lt;b&gt;item&lt;/b&gt; four&lt;/li&gt;
  &lt;li&gt;-&lt;/li&gt;
  &lt;li&gt;-&lt;/li&gt;
  &lt;li&gt;-&lt;/li&gt;
  &lt;li&gt;feature&lt;/li&gt;
      &lt;/ul&gt;
  
  &lt;h4&gt;text&lt;/h4&gt;
  
  &lt;a href="#" class="button lite"&gt;button&lt;/a&gt;
  
      &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="comparecontainer"&gt;
      &lt;div class="compare full"&gt;
  &lt;h2&gt;Second DIV&lt;/h2&gt;
  &lt;h3&gt;Subtitle&lt;/h3&gt;
  
      &lt;ul&gt;
  &lt;li&gt;&lt;b&gt;item&lt;/b&gt; one&lt;/li&gt;
  &lt;li&gt;&lt;b&gt;item&lt;/b&gt; two&lt;/li&gt;
  &lt;li&gt;&lt;b&gt;item&lt;/b&gt; three&lt;/li&gt;
  &lt;li&gt;&lt;b&gt;item&lt;/b&gt; four&lt;/li&gt;
  &lt;li&gt;&lt;b&gt;item&lt;/b&gt; five&lt;/li&gt;
  &lt;li&gt;&lt;b&gt;item&lt;/b&gt; six&lt;/li&gt;
  &lt;li&gt;&lt;b&gt;item&lt;/b&gt; seven&lt;/li&gt;
  &lt;li&gt;&lt;b&gt;feature&lt;/b&gt;&lt;/li&gt;
      &lt;/ul&gt;
  
  &lt;h4&gt;text&lt;/h4&gt;
  
  &lt;a href="#" class="button full"&gt;button&lt;/a&gt;
  
      &lt;/div&gt;
      &lt;/div&gt;
  
  &lt;/div&gt;
      &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>