Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<h3>flex-grow</h3>
<div class="container">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
</div>
</body>
</html>
 
.container{
  width: 500px;
  height: 160px;
  display: flex;
  align-items: flex-start;
  border: 1px solid #ccc;
}
.container .item{
  width: 100px;
  min-height: 50px;
  margin-right: 10px;
  text-align:center;
  color:#fff;
  background-color: green;
  flex-grow:1;
}
.container .item:nth-child(2) {
  flex-grow:2;
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers