-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrid.html
More file actions
60 lines (49 loc) · 1.24 KB
/
Copy pathgrid.html
File metadata and controls
60 lines (49 loc) · 1.24 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>grid</title>
<style>
/* .container{
border: 2px solid black;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 100px auto 120px;
row-gap: 10px;
column-gap: 10px;
/* justify-items: center;
align-items: center; */
/* place-items: center;
justify-content: center;
} */
.container {
border: 2px solid black;
display: flex;
display: grid;
grid-template-columns: repeat(3, 100px);
height: 300px;
/* justify-items: center; */
/* justify-content: center; */
}
.items{
border: 2px solid red;
height: 40px;
width: 50px;
}
.item4{
grid-row:1/2;
grid-column: 1/2;
}
</style>
</head>
<body>
<div class="container">
<div class="items">1</div>
<div class="items">2</div>
<div class="items">3</div>
<div class="items item4">4</div>
<div class="items">5</div>
</div>
</body>
</html>