-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchallenge-01.html
More file actions
executable file
·73 lines (66 loc) · 1.53 KB
/
challenge-01.html
File metadata and controls
executable file
·73 lines (66 loc) · 1.53 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Flex Box Challenge 1</title>
<style>
/* Your styles here */
body, html {
/* Make document take up the height of the page */
/* Set the height to 100% */
height: 100%;
}
body {
/* display flex */
display: flex;
/* Set the direction to column */
flex-direction: column ;
/* arrange the children in the center on the main axis */
/* justify-content center */
justify-content: center;
/* Arrange elements on the cross axis */
/* align-items center */
align-items: center;
}
.box {
/* Make font big font-size 2em */
font-size: 2em;
/* width 50px */
width: 50px;
/* height 50px */
height: 50px;
/* background color brown */
background-color: brown;
/* color white */
color: white;
/* padding 2em */
padding: 2em;
/* margin 1px */
margin: 1px;
/* Put the content of each box in the center */
/* display flex */
display: flex;
/* justify content center */
justify-content: center;
/* align items center */
align-items: center;
}
</style>
</head>
<body>
<div class="box">
<div class="small-box">A</div>
<div class="small-box">B</div>
<div class="small-box">C</div>
</div>
<div class="box">
<div class="small-box">D</div>
<div class="small-box">E</div>
<div class="small-box">F</div>
</div>
<div class="box">
<div class="small-box">G</div>
<div class="small-box">H</div>
<div class="small-box">I</div>
</div>
</body>
</html>