title: Changing image opacity in button hover
body: <p>I have an image which has a button on top. Now I need the css to be handling an image opacity which to be applied when I just hover the button.</p>
  
  <p>This is my attempt.</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>.wwdimg:hover {
    opacity: 0.5;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
    &lt;img src="http://via.placeholder.com/350x150"&gt;
    &lt;div&gt;&lt;button class="wwdimg"&gt; clickme &lt;/button&gt;&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>What happens is that the button opacity changes instead of the image.</p>