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>
  .show { display:block;}
 /* .item{ float: left; width: 150px; padding: 5px; background: #ccc;}*/
  .item.show:nth-child(odd) { background: #999; margin-right:5px }
  .item a { display:inline-block; margin-left: 10px; }
  body { width: 325px; }
  #unhideAll { display: none; clear: left; margin-top: 20px;}
  #container { overflow: auto; }
  
  .item:not(.hidden):nth-child(odd){
    background: red;
  }
  .hidden{
    display:none;
  }
</style>
</head>
<body>
  <div id="container">
  <div class="item">item1<a href="#">hide</a></div>
  <div class="item hidden">item2<a href="#">hide</a>  </div>
  <div class="item ">item<a href="#">hide</a></div>
  <div class="item hidden">item<a href="#">hide</a></div>
  <div class="item">item<a href="#">hide</a></div>
  <div class="item hidden">item<a href="#">hide</a></div>
  <div class="item">item<a href="#">hide</a></div>
  </div>
  <div id="unhideAll"><a href="#">Unhide All</a></div>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers