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 class="valign bottom">
    <div>
      
      <div class="block red">my bottom aligned div 1</div>
      <div class="block yellow">my bottom aligned div 2</div>
      <div class="block green">my bottom aligned div 3</div>
      
    </div>
  </div>
  
</body>
</html>
 
html, body { width: 100%; height: 100%; }
.valign { display: table; width: 100%; height: 100%; }
.valign > div { display: table-cell; width: 100%; height: 100%; }
.valign.bottom > div { vertical-align: bottom; }
.valign.middle > div { vertical-align: middle; }
.block { padding: 20px; }
.block.red { background: red; }
.block.yellow { background: yellow; }
.block.green { background: green; }
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers