-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (85 loc) · 1.97 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
<!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;
margin: 0;
padding: 0;
}
.container {
display: grid;
height: 748px;
width: 748px;
background-color: #000;
grid-template-columns: 320px 198px 153px 50px;
grid-template-rows: 414px 130px 155px 22px;
gap: 9px;
}
.red {
background-color: #e72f24;
grid-column: span 1;
}
.white {
background-color: #f0f1ec;
}
.blue {
background-color: #004592;
border-bottom: 10px solid #000;
}
.yellow {
background-color: #f9d01e;
grid-area: 4 / 2;
}
.black {
background-color: #232629;
grid-area: 4 /3;
}
.first {
grid-column: span 3;
}
.second {
grid-row: span 2;
}
.third {
grid-column: span 2;
grid-row: span 2;
}
.fourth {
grid-row: span 2;
}
</style>
</head>
<body>
<!-- Write your HTML here -->
<div class="container">
<div class="red"></div>
<div class="first white"></div>
<div class="second white"></div>
<div class="third white"></div>
<div class="blue"></div>
<div class="fourth white"></div>
<div class="white"></div>
<div class="yellow"></div>
<div class="black"></div>
</div>
</body>
</html>