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>
<!--[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; }
  #parent {
    margin:0 auto;
    width:200px;
    background:#0000ff;
    padding:20px 0;
  }
  .child {
    display:inline;
    position: absolute;
    left:0px;
    right:0px;
    width:100%;
    background:red;
    color:#fff;
  }
  
  .fsubchild {
    float: left;
    width: 200px;
  }
</style>
</head>
<body>
  <div id="parent">
    <div class="child">
      asa
  </div>
    <div>
      sdfksjdlfkj
    </div>
    <div>
      sdfksjdlfkj
    </div>
    <div>
      sdfksjdlfkj
    </div>
    <div>
      sdfksjdlfkj
    </div>
    <div>
      sdfksjdlfkj
    </div>
    <div>
      sdfksjdlfkj
    </div>
</div>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers