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; }
  
  html, body, #content {
    margin: 0; padding: 0;
    height: 100%;
    width: 100%;
  }
  
  article.layer {
    position: relative;
    display: block;
    height: 100%;
    width: 100%;
        background-color: green;
  }
  
  article .left, article .right {
    position:absolute;
    width: 50%;
    height: 100%;
    min-height:100%;
    display:table;
  }
  article .left { left: -1px; top: 0; background-color: red;}
  article .right { left: 50%; top: 0; background-color: blue; }
  
  #two {
    background-color: yellow;
  }
  
</style>
</head>
<body>
<article id="one" class="layer"></article>
<article id="two" class="layer"></article>
<article id="three" class="layer">
   <div class="left"></div>
   <div class="right"></div>
</article>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers