-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (91 loc) · 2 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mondrian Project</title>
<style>
/*
Write your CSS here
Gap Colour: #000
White: #F0F1EC
Red: #E72F24
Black: #232629
Blue: #004592
Yellow: #F9D01E
For dimensions, see dimensions.png image.
HINT: Remember you can't change the properties of grid lines.
But grid lines are transparent!
*/
body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
padding: 0;
margin: 0;
}
.container{
background-color: #000;
display: grid;
height: 748px;
width: 748px;
gap: 9px;
grid-template-columns: 320px 198px 153px 50px;
grid-template-rows: 414px 130px 155px 20px;
}
.one{
background-color: #e72f24;
}
.two {
background-color: #f0f1ec;
grid-column: span 3;
}
.three{
background-color: #f0f1ec;
grid-row: span 2;
}
.four{
background-color: #f0f1ec;
/* grid-column: span 2;
grid-row: span 2;
for 2-d use grid-area instead of span
*/
grid-area: 2/2/4/4;
}
.five{
background-color: #004592;
border-bottom: 10px solid #000;
}
.six{
background-color: #f0f1ec;
grid-row: span 2;
}
.seven{
background-color: #f0f1ec;
}
.eight{
background-color: #f9d01e;
}
.nine{
background-color: #232629;
}
/* .item{
} */
</style>
</head>
<body>
<!-- Write your HTML here -->
<div class = "container">
<div class = "item one"></div>
<div class = "item two"></div>
<div class = "item three"></div>
<div class = "item four"></div>
<div class = "item five"></div>
<div class = "item six"></div>
<div class = "item seven"></div>
<div class = "item eight"></div>
<div class = "item nine"></div>
</div>
</body>
</html>