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-container">
  <div class="grid-item-a">A</div>
  <div class="grid-item-b">B</div>
  <div class="grid-item-c">C</div>
</div>
</body>
  
</html>
 
body {
  font-family: Avenir Next, SegoeUI, arial, sans-serif;
}
.grid-container {
  background-color: #E6CAD6;
  display: grid;
  grid-template-columns: 5em 1fr;
  grid-template-rows: auto auto;
}
[class^="grid-item"] {
  border: 1px solid #fff;
  min-height: 2.5em;
  font-size: 4em;
  line-height: 2.5em;
  text-align: center;
  color: #fff;
}
.grid-item-a {
  background-color: #3D74C7;
}
.grid-item-b {
  background-color: #85CAAA;
}
.grid-item-c {
  background-color: #DAB97D;
}
Output 300px

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

Dismiss x
public
Bin info
thatemilpro
0viewers