We would like to know how to show description on image hover.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.description {<!-- ww w.j av a2 s . c om-->
opacity: 0;
}
img:hover+.description {
opacity: 1;
}
</style>
</head>
<body>
<div class="section">
<img src="http://placehold.it/100x100" />
<div class="description">HELLO</div>
<img src="http://placehold.it/100x100" />
<div class="description">WORLD</div>
</div>
</body>
</html>
The code above is rendered as follows: