-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplace-items.html
59 lines (56 loc) · 1.39 KB
/
place-items.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grid Alignment | Place Items</title>
<style>
*{
margin: 0;
padding: 0;
}
.container{
width: 80%;
margin: auto;
display: grid;
grid-template-rows: 130px 130px 130px;
grid-template-columns: 1fr 1fr 1fr;
gap: 5px;
place-items: center end ;
}
.items {
border: 3px solid black;
width: 150px;
background-color: lightblue;
}
.items.i1,
.items.i4,
.items.i7 {
height: 100px;
}
.items.i2,
.items.i5,
.items.i8 {
height: 50px;
}
.items.i3,
.items.i6,
.items.i9 {
height: 80px;
}
</style>
</head>
<body>
<div class="container">
<div class="items i1">1</div>
<div class="items i2">2</div>
<div class="items i3">3</div>
<div class="items i4">4</div>
<div class="items i5">5</div>
<div class="items i6">6</div>
<div class="items i7">7</div>
<div class="items i8">8</div>
<div class="items i9">9</div>
</div>
</body>
</html>