Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
  
  *{margin:0; padding:0;}
  .box{
    position:relative;
    background:#444;
    width:160px;
    height:200px;
  }
  .box span{
    position:absolute;
    left:0px;
    display:none;
  }
  
  .box:hover img{
    opacity:0.4;
  }
  .box:hover span{
    display:inline;
  }
  
  
  
  
  
</style>
</head>
<body>
  
  
  <div class="box">
    <img src="http://placehold.it/160x200/cf5">
    <span>This is the description 1</span>  
  </div>
  
  
  <div class="box">
    <img src="http://placehold.it/160x200/f0f">
    <span>This is the description 2</span>  
  </div>
  
  
  
  
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers