title: Showing Text When Hovering Over an Image Link
body: <p>I have already looked here (<a href="https://stackoverflow.com/questions/14263594/how-to-show-text-on-image-when-hovering">How to show text on image when hovering?</a>) to find a solution to this problem but it doesnt 100% work... Because the paragraph is located below the image part of the image is not covered when you hover over it. I want the whole image covered by the text when you hover over the image.
  (Look at this: <a href="http://jsfiddle.net/rMhGE/" rel="nofollow noreferrer">http://jsfiddle.net/rMhGE/</a> or below.)</p>
  
  <p>The HTML</p>
  
  <pre><code>&lt;body&gt;
          &lt;div class="cube1"&gt;
  
              &lt;a href="http://google.com"&gt;&lt;img src="http://us.123rf.com/400wm/400/400/busja/busja1209/busja120900010/15099001-detailed-vector-image-of-symbol-of-london--best-known-british-double-decker-bus.jpg"&gt;
              &lt;p class="contact"&gt;Random Text Here&lt;/p&gt;&lt;/a&gt;
         &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>The CSS</p>
  
  <pre><code>.cube1 {
      position: relative;
      width: 400px;
      height: 400px;
      float: left;
  }
  
  .contact {
      overflow: hidden;
      position: absolute;
      width: 400px;
      height: 386px;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(255,255,255,0.95);
      color: #aaa;
      visibility: hidden;
      opacity: 0;
  }
  
  .cube1:hover .contact {
      visibility: visible;
      opacity: 1;
  }
  </code></pre>
  
  <p>Any help is appreciated. Thank you.</p>