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>
  <div class="container">
    
    <div class="box1">A</div>
    <div class="box2">B</div>
    
  </div>
</body>
</html>
 
.container {
  width: 100%;
  height: 400px;
  outline: 2px solid red;
  display: grid;
  
  grid-auto-rows: 1fr;
  grid-auto-columns: 1fr;
}
.container{
  font-size: 50px;
  text-align: right;
}
.box1 {
  grid-row: 1/10;
  grid-column: 1/2;
  background-color: #faa;
}
.box2 {
  grid-row: 3/5;
  grid-column: 1/8;
  background-color: #afa;
}
Output 300px

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers