I have this image where I have used z-index to place a box and text over the image:
Here's what it looks like:

And that's done using this code:
#wrap {
position:relative;
width: 200px;
height: 145px;
border: 1px solid grey
}
#text {
z-index: 100;
position: absolute;
color: white;
font-size: 20px;
font-weight: bold;
padding: 10px;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,.7);
}
and the calling the function:
<div id="wrap">
<img src="/wp-content/uploads/2014/03/brandslang.png"/>
<div id="text">Brand</div>
</div>
This image etc will be used as a link so basically I want to give the user some sort of response when he or she hovers over the image and basically I want to have the box span over the whole image like this when the user hovers over it like this:

I looked at the a:hover but I'm not really sure how to implement it so it will only affect this image and not every single link I have on the page, and that was where I was hoping you guys could help me! :)