-
Notifications
You must be signed in to change notification settings - Fork 0
/
code28.html
55 lines (46 loc) · 1.34 KB
/
code28.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
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>flex box</title>
<style>
.container{
width: 100%;
height: 544px;
border: 2px solid rebeccapurple;
display: flex;
/* flex-wrap: wrap; */
/* flex-direction: column;
flex-direction: column-reverse;
flex-direction: row-reverse; */
}
.item{
width: 100px;
height: 100px;
border: 2px solid red;
margin: 10px;
padding: 3px;
}
#item1{
/* flex-grow: 3; */
/* order: 5; */
}
#item2{
/* flex-basis: 260px; changes width in case of row / height in case of column */
/* flex-shrink: 3; */
/* order: 2; */
}
</style>
</head>
<body>
<div class="container">
<div class="item" id="item1">first</div>
<div class="item" id="item2">second</div>
<div class="item" id="item3">third</div>
<div class="item" id="item4">fourth</div>
<div class="item" id="item5">fifth</div>
</div>
</body>
</html>