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=container>
   <div id=content>content</div>
   <div id=sub-menu>sub-menu</div>
  </div>
</body>
</html>
 
#container {
  display: table; 
  width: 100%;
  height: 500px;
  background: red;
}
#content {
  background: green;
  height: 200px;
}
#sub-menu {
  background: blue;
  
  /**
   * uncomment if you want it to 
   * stick to the bottom of container 
   * instead of bottom of content
   */
  // display: table-footer-group;
}
@media (min-width: 500px) {
  #sub-menu {
    display: table-header-group;
  }
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers