-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexercise1.html
46 lines (40 loc) · 949 Bytes
/
exercise1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grid Placement</title>
<style>
body {
padding: 0;
margin: 0;
}
.container {
height: 100vh;
display: grid;
gap: 3rem;
grid-template-columns: 1fr 1fr 1.5fr;
grid-template-rows: 1fr 1fr;
}
.item {
display: flex;
font-size: 5rem;
color: white;
font-family: Arial, Helvetica, sans-serif;
background-color: blueviolet;
justify-content: center;
align-items: center;
/* TODO: Use Flexbox to align the text to the center horizontally and vertically.
See goal1 image.
*/
}
</style>
</head>
<body>
<div class="container">
<div class="item cowboy">🤠</div>
<div class="item astronaut">👨🚀</div>
<div class="item book">📖</div>
</div>
</body>
</html>