I have an image that when hovered it has some text in it and you can click it still to get linked to another page. The thing is i don't think it practical the way i achieved it. I made the
tag with text a link and that is how i got the link and text to work when hovered. The text looks like a link and i just wanted normal text but at the same time keep the clickable image when hovered. I just want to know if the way i did it is practical or is there a better way?
jsfiddle - http://jsfiddle.net/gqg320on/1/
<section class="main_content">
<article id="thumbnail_1">
<div class="imgwrap">
<a href=""><img src="images/taffies.jpg" alt="taffies website thumbnail"></a>
<a href="http://www.google.com"><p class="imgDescription">sdasdasd</p></a>
</div>
</article>
<article>
<a href=""><img src="images/fitstyle-thumbnail.png" alt="fitstyle website thumbnail"></a>
</article>
</section> <!-- end of section -->
.imgwrap{
width:260px;
height:200px;
position:relative;
}
.imgDescription{
background:blue;
visibility:hidden;
position:absolute;
top:0;
bottom:0;
right:0;
left:0;
}
.imgwrap:hover .imgDescription{
visibility:visible;
}