-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflex-direction1.html
More file actions
38 lines (34 loc) · 955 Bytes
/
Copy pathflex-direction1.html
File metadata and controls
38 lines (34 loc) · 955 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>flex-direction</title>
<style media="screen">
main{
display:flex;
flex-direction: column;
margin: 10px;}
.item1{background-color:red;}
.item2{background:blue;}
.item3{background:green;}
.item4{background:yellow;}
.item5{background:brown;}
.item6{background:pink;}
.items{
margin: 5px;
padding: 5px;
}
</style>
</head>
<body>
<main>
<div class="item1 items">red</div>
<div class="item2 items">blue</div>
<div class="item3 items">green</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>