Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<div id="container">
<div id="contents">
<div id="top-left" class="block"></div>
<div id="top-right" class="block"></div>
<div id="bottom-left" class="block"></div>
<div id="bottom-right" class="block"></div>
</div>
</div>
</body>
</html>
 
#container {
  width: 200px;
  height: 200px;
  overflow: auto;
}
#contents {
  width: 1000px;
  height: 1000px;
  background-color: #ccf;
  position: relative;
  overflow: hidden;
}
.block {
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: #00f;
}
#top-left {
  top: -50px;
  left: -50px;
}
#top-right {
  top: -50px;
  left: 950px;
}
#bottom-left {
  top: 950px;
  left: -50px;
}
#bottom-right {
  top: 950px;
  left: 950px;
}
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers