title: CSS: Hover over a link but image is not displayed
body: <p>In practice, when I hover these links, all of them turn green as the first hover selector get executed fine. However, for the last link "cde", I call another hover selector to display an image, it does not work.</p>
  
  <p><em>What I have tried:</em></p>
  
  <ul>
  <li>Set <strong>original</strong> opacity = 0  -- <strong>hover</strong> opacity  = 1  --> does not work</li>
  <li>Set <strong>original</strong> display = none -- <strong>hover</strong> display = block --> does not work </li>
  </ul>
  
  <p><strong>Question: Is there any way to get an image to appear with the texts turn green?</strong></p>
  
  <p>Thank you so much in advance for your help. Highly appreciate!</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> 
  .work-abcde a:hover{
    color: #61c261;
    }
  
    .cde-pic{
    position: relative;
    width: -100px;
    top: -100px;
    float: right;
    visibility: hidden;
    }
  
  .cde:hover .cde-pic {
    position: relative;
    left: -20px;
    visibility: visible;
  }
   </code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="work-abcde"&gt;
  &lt;ul&gt;
  &lt;li&gt;&lt;h3&gt;abc bcd cde&lt;/h3&gt;&lt;/li&gt;
  &lt;li&gt;&lt;h4&gt;&lt;a class="abc" href="www.abc.com" rel="nofollow"&gt; abc&lt;/a&gt; &lt;/h4&gt;&lt;/li&gt;
  &lt;li&gt;&lt;h4&gt;&lt;a class="bcd" href="www.bcd.com" rel="nofollow"&gt; bcd &lt;/a&gt; &lt;/h4&gt;&lt;/li&gt;
  &lt;li&gt;&lt;h4&gt;&lt;a class="cde" href="www.cde.com" rel="nofollow"&gt; cde&lt;/a&gt; &lt;/h4&gt; &lt;/li&gt;
  &lt;div class="cde-pic"&gt;&lt;img src="./Resources/cde.png" &gt;&lt;/div&gt;
  &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>