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 id="content">
    <div id="header">
      This is the header
    </div>
    <div id="inner">
        This is the body
     </div>
    <div id="footer">
      this is the footer
    </div>
  </div>
</body>
</html>
 
body{
  height:100%;
  padding:0px;
  margin:0px;
}
#header{
  position:relative;
  bottom:0px;
  width:100%;
  height:100px;
  background:#f00;
}
#content{
  position:relative;
  bottom:0px;
  width:100%;
  height:100%;
}
#footer{
  position:absolute;
  bottom:0px;
  width:100%;
  height:100px;
  background:#0f0;
}
#inner{
  width:100%;
  text-align:center;
  position: absolute; 
  top: 50%;
  display: table-cell; 
  vertical-align: middle;
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers