Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  
  <style>
    main {
      border: 1px solid red;
      width: 200px;
      height: 200px;
      display: flex;
      flex-direction: column;
    }
    
    .flex {
      flex: 1;
    }
  </style>
</head>
<body>
  <main>
    <div class="flex"></div>
    <div id="content"></div>
  </main>
  
  <script>
    window.setTimeout(function() {
      content.innerText = 'Should be inside box';
    }, 1000);
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
keanuleepro
0viewers