Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
 
<meta name="robots" content="noindex">
<html>
<head>
  <meta charset="utf-8">
  <title>testing</title>
  
 
</head>
<body> 
     
    <div class="header">
      <header id="header">
        <h1>Header</h1>                             
      </header>
  </div>
  <div id="content"><p>123456789  </p> <h1>test</h1><h1>test</h1><h1>test</h1><h1>test</h1><h1>test</h1><h1>last</h1>
  <div class="push"></div>
  </div>     
   <div id="footer">
     <h1>f ff </h1><h1>f ff </h1><h1>f ff </h1><h1>f ff </h1><h1>f ff </h1>       
   </div>
  
  
</body>
</html>
 
html {
  background: lightblue;
}
html, body {
  height:100%;   margin:0;padding:0;
}
.header {  
  background:grey;
  margin:0 auto;
  position:fixed !important;
  position: absolute; /*ie6 and above*/
  top:0;
  left:0;
  right:0;
  z-index:100;
}
#header {
  width:80%;
  margin:0 auto; 
  text-align:center;   
  background:blue;
}
#content {
 min-height: 100%;
height: auto !important; 
height: 100%;
    padding-top: 5em;
    box-sizing: border-box; 
}
#footer { 
width:100%;
height:auto;
background:green;
margin:0 auto;
  position:absolute;
  right:0px;
}
.push {
  height:5em;
}
Output 300px

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

Dismiss x
public
Bin info
4goodapppro
0viewers