-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path3 align-content=use_double_rows.html
More file actions
54 lines (52 loc) · 1.13 KB
/
Copy path3 align-content=use_double_rows.html
File metadata and controls
54 lines (52 loc) · 1.13 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>align-items</title>
<style media="screen">
main {
width: 40%;
height: 400px;
border: 2px solid black;
margin: 10px;
display: flex;
flex-flow: row wrap;
justify-content: center;
align-content: center;
}
.item1 {
background-color: red;
}
.item2 {
background: blue;
}
.item3 {
background: green;
}
.item4 {
background: yellow;
}
.item5 {
background: brown;
}
.item6 {
background: pink;
}
.items {
margin: 5px;
padding: 5px;
height: 30px;
}
</style>
</head>
<body>
<main>
<div class="item1 items">red</div>
<div class="item2 items">blue</div>
<div class="item3 items">green</div>
<div class="item4 items">yellow</div>
<div class="item5 items">brown</div>
<div class="item6 items">pink</div>
</main>
</body>
</html>