-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.html
63 lines (54 loc) · 1.4 KB
/
grid.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Use of grid </title>
<style>
.containr {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(3, 200px) 50px 50px;
gap: 10px;
}
.box {
background: gray;
border-radius: 5px;
color: white;
display: flex;
flex-wrap: warp;
justify-content: center;
align-items: center;
font-size: 30px;
font-weight: bold;
}
#box-11,
#box-12 {
grid-column: span 3;
}
#box-1 {
grid-row: span 5;
}
</style>
</head>
<body>
<h1>Basic use of gride</h1>
<section>
<div class="containr">
<div class="box" id="box-1">BOX-1</div>
<div class="box" id="box-2">BOX-2</div>
<div class="box" id="box-3">BOX-3</div>
<div class="box" id="box-4">BOX-4</div>
<div class="box" id="box-5">BOX-5</div>
<div class="box" id="box-6">BOX-6</div>
<div class="box" id="box-7">BOX-7</div>
<div class="box" id="box-8">BOX-8</div>
<div class="box" id="box-9">BOX-9</div>
<div class="box" id="box-10">BOX-10</div>
<div class="box" id="box-11">BOX-11</div>
<div class="box" id="box-12">BOX-12</div>
</div>
</section>
</body>
</html>