x
1
2
<html>
3
<head>
4
<style>
5
.grid-container
6
{
7
display: grid;
8
background-color: #2196F3;
9
padding: 10px;
10
grid-auto-flow:column;
11
}
12
13
.item
14
{
15
background-color: rgba(255, 255, 255, 0.8);
16
border: 1px solid rgba(0, 0, 0, 0.8);
17
padding: 20px;
18
font-size: 30px;
19
text-align: center;
20
}
21
</style>
22
</head>
23
<body>
24
25
<div class="grid-container">
26
<div class="item">1</div>
27
<div class="item">2</div>
28
<div class="item">3</div>
29
<div class="item">4</div>
30
<div class="item">5</div>
31
</div>
32
33
</body>
34
</html>