-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
81 lines (71 loc) · 1.6 KB
/
test.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!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>Document</title>
<style>
.myclass {
display: grid;
gap: 8px;
grid-template-columns: 180px 130px 180px 130px;
grid-template-rows: repeat(3, minmax(100px, auto));
background-color:white;
color:rgb(85, 79, 79);
}
.box {
background-color:rgb(85, 79, 79);
color: white;
border-radius: 5px;
padding: 25px;
font-size: 150%;
}
.box .box {
background-color: rgb(204, 204, 204);
color: rgb(85, 79, 79);
}
.a {
grid-column: 1 / 3;
}
.b {
grid-column: 4;
}
.c {
grid-column: 1;
grid-row: 2 / 4;
}
.d {
grid-column: 2 / 5;
grid-row: 2 / 4;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: subgrid;
}
.e {
grid-row: 1 / 3;
grid-column: 1;
}
.f {
grid-row: 1;
grid-column: 2 / 4;
}
.g {
grid-row: 2;
grid-column: 3;
}
</style>
</head>
<body>
<div class="myclass">
<div class="box a">A</div>
<div class="box b">B</div>
<div class="box c">C</div>
<div class="box d">
<div class="box e">E</div>
<div class="box f">F</div>
<div class="box g">G</div>
</div>
</div>
</body>
</html>