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>1</div>
  <div>2</div>
  <div>3</div>
  <div>4</div>
  <div>5</div>
  <div>6</div>
  <div>7</div>
  <div>8</div>
  <div>9</div>
</div>
</body>
</html>
 
.container{
  display: grid;
  margin-bottom: 5px;
  grid-gap: 5px;
}
.container div{
  text-align: center;
  line-height: 80px;
  color:#fff;
  background-color: green;
}
.container div:nth-child(1){
  grid-area: 1/1/3/3;
}
/* 划分出9个单元格,然后将其定名为a到i的九个区域,分别对应这九个单元格 */
.container {
  grid-template-columns: 80px 80px 80px;
  grid-template-rows: 80px 80px 80px;
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers