-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrid.html
More file actions
70 lines (70 loc) · 1.6 KB
/
grid.html
File metadata and controls
70 lines (70 loc) · 1.6 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
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.box
{
display: grid;
grid-template-columns: repeat(2 , 1fr) 200px;
grid-template-columns: 200px 200px 200px;
grid-template-rows: 200px 200px 200px;
grid-gap: 10px;
}
.one
{
background-color: red;
grid-area: 2/3;
}
.two
{
background-color: blue;
}
.three
{
background-color: green;
grid-area: 2/1;
}
.four
{
background-color: yellow;
grid-area: 1/3;
}
.five
{
background-color: brown;
}
.six
{
background-color: pink;
}
.seven
{
background-color: violet;
}
.eight
{
background-color: purple;
}
.nine
{
background-color: maroon;
}
</style>
</head>
<body>
<div class="box">
<div class="one">one</div>
<div class="two">two</div>
<div class="three">three</div>
<div class="four">four</div>
<div class="five">five</div>
<div class="six">six</div>
<div class="seven">seven</div>
<div class="eight">eight</div>
<div class="nine">nine</div>
</div>
</body>
</html>