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="Grid">
    <div class="Grid-cell">
      1<br>
      1<br>
      1<br>
      1<br>
    </div>
    <div class="Grid-cell">2</div>
    <div class="Grid-cell">
      3<br>
      3<br>
    </div>
  </div>
</body>
</html>
 
.Grid {
  display: flex;
  justify-content: center; 
  align-items: center;
}
.Grid-cell {
  flex: 1;
  background-color: #336699;
  color: #fff;
  text-align: center;
}
/*
How can I vertically align the contents and make sure they stay the same height without using the height attribute?
*/
Output

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

Dismiss x
public
Bin info
sbussardpro
0viewers