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 class="container">
    <div class="left"></div>
    <div class="right">
      <span class="number">1</span>
      <span class="number">2</span>
    </div>
  </div>
</body>
</html>
 
*, *:before, *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.container {
  width: 100px; 
  background: #e7e7e7;
  overflow:auto;  
  position:relative;
}
.container:before {
  content:"";
  width:10px; 
  height:10px; 
  background: red; 
  position:Absolute;
  top:50%;
  left:0;
  margin-top:-5px;
}
.right {
  display: inline-block;
  padding: 5px;
  float:right
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers