-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.html
115 lines (112 loc) · 3.13 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!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">
<meta name="author" content="Meleyotan Oyeleke">
<title>Document</title>
<style>
body{
margin: 0 auto;
}
div{
font-size:xxx-large;
text-align: center;
font-weight: bold;
}
#no_one{
background-color: aqua;
grid-area: h;
}
#no_two{
background-color: aquamarine;
grid-area: m;
}
#no_three{
background-color:bisque;
grid-area: c;
}
#no_four{
background-color: burlywood;
grid-area: f;
}
#no_five{
background-color: cadetblue;
grid-area: a;
}
#no_six{
background-color: rgb(146, 146, 146);
grid-area: e;
}
#no_seven{
background-color: rgb(92, 18, 18);
grid-area: b;
}
/* #no_eight{
background-color: rgba(180, 192, 16, 0.513);
}
#no_nine{
background-color: rgb(97, 76, 190);
} */
.container{
display: grid;
grid-template-columns: repeat(12, 1fr);
grid-template-rows:50px auto 50px 50px;
grid-gap:3px;
grid-template-areas:
"h h h h h h h h h h h h"
"m m c c c c c c c c c c"
"m m c c c c c c c c c c"
"f f f f f f f f f f f f";
height: 100vh;
}
.container_two{
display: grid;
grid-template: repeat(2, 100px) / repeat(auto-fit, minmax(100px,6fr));
grid-auto-rows: 100px;
height:100vh;
}
#container_two_one{
background-color:bisque;
}
#container_two_two{
background-color: aquamarine;
}
#container_two_three{
background-color: blanchedalmond;
}
#container_two_four{
background-color: cornflowerblue;
}
#container_two_five{
background-color: darkgrey;
}
#container_two_six{
background-color: darkorange;
}
</style>
</head>
<body>
<div class="container">
<div id="no_one">1</div>
<div id="no_two">2</div>
<div id="no_three">3</div>
<div id="no_four">4</div>
<!-- <div id="no_five">5</div>
<div id="no_six">6</div>
<div id="no_seven">7</div>
<div id="no_eight">8</div>
<div id="no_nine">9</div> -->
</div>
<!-- Section 2 -->
<div class="container_two">
<div id="container_two_one"></div>
<div id="container_two_two"></div>
<div id="container_two_three"></div>
<div id="container_two_four"></div>
<div id="container_two_five"></div>
<div id="container_two_six"></div>
</div>
</body>
</html>