Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
    <style type="text/css">
        html,body {
            padding: 0;
            margin: 0;
        }
  
        header {
            position:fixed;
            top:0;
            width:100%;
            height:40px;
            background-color:#333;
            padding:20px;
        }
        footer {
            background-color: #333;
        color: #fff;
            width: 100%;
            bottom: 0;
            position: fixed;
        }
        #main{
            padding-top:100px;
            text-align:center;
            border: 1px red solid;
            margin-bottom: 1.5em;
        }
  </style>
</head>
<body>
    <header>
    header
    </header>
    <div id="main">
    main
    </div>
    <footer>
    footer
    </footer>
</body>
</html>
Output

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

Dismiss x
public
Bin info
fcalderanpro
0viewers