title: Change background-color on text links but not image links
body: <p>I have an issue, I would like my text link to have a <code>background-color</code> on <code>:hover</code> but now, the divs and images which are linked also have this <code>background-color</code>, does anyone has an idea how i can apply this <code>background-color</code> only to the text links?</p>
  
  <p>I have tried all sorts of codes : </p>
  
  <pre><code>a:hover img{
     background-color: transparent;
  }
  
  a img:hover{
      background-color: transparent;
  }
  </code></pre>
  
  <p>but nothing has worked...</p>
  
  <p>This is not a duplicated of the linked question, I can't put a class on some links or images because it's running on wordpress so I can't programm all text links or all image links to have a certain class.</p>
  
  <p>I have tried the "vertical align" solution of 
  <a href="https://stackoverflow.com/questions/273964/how-to-change-background-color-on-text-links-on-hover-but-not-image-links">How to change background-color on text links on hover but not image links</a>, but i have images with padding, so one can see the background around, and also on regular image, one can see a thin yellow line aswell.</p>