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>
  body{ width: 100%; height: 100%; }
  #main { display: table; width: 100%; height: 100%; }
  .row { display: table-row; }
  #header { 
    display: table-cell; 
    background-color: red;
    width: 100%;
    height: 50px;
  }
  #content {
    display: table-cell;
    bottom: 50px;
    background-color: black;
  }
  
  #inner_content { 
    height: 100%;
    background-color: yellow;
    right: 0;
  }
  
  #menu {
    background-color: gray;
    float: left;
    height: 100%;
    width: 120px;
  }
  
  #footer { 
    display: table-cell;
    background-color: green;
    height: 50px;
  }
</style>
</head>
<body>
  <div id="main">
    <div class="row">
      <div id="header">aaa</div>
    </div>
    
    <div class="row">
      <div id="content">
        <div id="menu">asdasd</div>
        <div id="inner_content">sadads</div>
      </div>
    </div>
    
    <div class="row">
      <div id="footer">sadasdsa</div>
    </div>
  </div>
</body>
</html>
 
if (document.getElementById('hello')) {
  document.getElementById('hello').innerHTML = 'Hello World - this was inserted using JavaScript';
}
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers