Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div id=a>
    <div id=b>
    </div>
  </div>
</body>
</html>
 
#a {
  position: fixed;
  left:10px; top:10px; bottom:10px; right:10px;
  background: yellow;
  overflow-y: scroll;
}
#b {
  display:table;
  width:100%;
  border-collapse: collapse;
}
.m {
  display:table-row;
  position: relative;
  background: #789;
  border-top: thin solid #ccc;
}
.u, .c {
  display: table-cell;
}
.u {
  width: 100px;
}
.block { position:relative; }
.opener {
    height: 13px;
    text-align: center;
    cursor: pointer;
    color: red;
    width: 100%;
    bottom: 0;
    left:0;
    z-index: 2;
    position: absolute;
}
.opener::before {
    content: '▼';
}
 
for (var i=0; i<100;i++) {
  $('<div class=m><div class=block><div class=u>U'+i+'</div><div class=c>C'+i+'</div><div class=opener></div></div></div>').appendTo('#b');
}
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers