title: How to create a transparent dark overlay above image with text?
body: <p>I want a to create a transparent dark image overlay above image with text. with a nice transition on hover.</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>.study1 {
    background-image: url("http://www.livingfengshui.ca/wp-content/uploads/2013/07/file7881255537584.jpg");
    height: 300px;
    width: 400px;
  }
  
  .title {
    margin: 0 auto;
    width: 60%;
    display: block;
    font-size: 1.25em;
    color: #ccc;
    text-align: center;
  padding-top: 120px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="study1"&gt;
  
    &lt;div class=""&gt;
      &lt;a class="title" href="#"&gt;View Case Study&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>the design I wanted is this:</p>
  
  <p><img src="https://i.stack.imgur.com/YgMa1.jpg" alt="the design I wanted is this"></p>