title: Applying clearfix to all div to prevent container collapse
body: <p>Is it good idea to add <code>clearfix</code> to all <code>div</code> elements to prevent container collapse situations?</p>
  
  <p>Or to use it just on classes like this ?</p>
  
  <pre><code>&lt;div class="container"&gt;
     More div elements...
  &lt;/div&gt;
  
  .container::after {
   clear: both;
   content: “”;
   display: table;
  }
  </code></pre>