Here is the HTML code snippet:
<a href="#" class="highlightit"><img border="0" src="http://twitter.github.com/bootstrap/assets/img/bootstrap-mdo-sfmoma-03.jpg">
<span> something </span>
</a>
CSS styles for the highlighted image and text:
.highlightit img{
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50);
-moz-opacity: 0.5;
opacity: 0.5;
}
.highlightit:hover img{
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100);
-moz-opacity: 1;
opacity: 1;
}
.highlightit:hover span{
display:block;
}
.highlightit span{
font-size:20px;
color:white;
background:black;
text-decoration:none;
display:none;
width:100%;
padding:10px;
position:relative;
margin-top:-20px;
}
To see a preview of this effect, visit the following fiddle link: http://jsfiddle.net/wandarkaf/cNC5G/.