-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathflexbox.html
More file actions
43 lines (40 loc) · 932 Bytes
/
flexbox.html
File metadata and controls
43 lines (40 loc) · 932 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Example: Flexbox</title>
<style>
body {
color: #fff;
font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", Sans-Serif;
}
.box-set,
.box {
border-radius: 6px;
}
.box-set {
background: #eaeaed;
display: flex;
flex-direction: initial;
flex-wrap: initial;
justify-content: initial;
align-items: initial;
}
.box {
background: #2db34a;
margin: 5px;
width: 70px;
padding: 20px 0;
text-align: center;
}
</style>
</head>
<body>
<div class="box-set">
<div class="box">Box 1</div>
<div class="box">Box 2</div>
<div class="box">Box 3</div>
<div class="box">Box 4</div>
<div class="box">Box 5</div>
</div>
</body>
</html>