Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Setting body height to 100% without scroll bars</title>
</head>
<body>
  <style>
    /* use background coloring to contrast the html element from the body element */ 
    html { 
      height: 100%; /* forces page height to equal inner window height. */
      background:gray; }
    body {
      background:white;
    }
    body1 { /* change body to body1 or vice versa for quick commenting-out. */
      min-height: 100%;
    }
    body { 
      position: absolute;
      top:0; bottom:0;
      left:0; right:0;
    }
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
DanielAtSamrakshpro
0viewers