title: How to add color overlay on an image
body: <p>So I have an image. I need to put a color overlay <code>rgba(56, 59, 64, 0.7)</code> on top of this image.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="home"&gt;
     &lt;img src="http://via.placeholder.com/350x150" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>.home img {
    width: 100%;
    padding: 0;
    margin: 0;
  }
  </code></pre>
  
  <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>.home img {
    width: 100%;
    padding: 0;
    margin: 0;
  }
      </code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="home"&gt;
     &lt;img src="http://via.placeholder.com/350x150" /&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>