/
flex_test.html
executable file
·81 lines (60 loc) · 1.83 KB
/
flex_test.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- ======================================================================================================================== -->
<title>Cuty Face</title>
<style>
body{
background: #eee;
}
.container {
height: 200px;
display: flex;
}
.container2 {
height: 200px;
background: #000;
display: flex;
/* flex-direction: row;*/
align-items: center;
}
.item {
width: 1000px;
height: 50px;
margin: 10px;
}
.red {
background: red;
/* height: 30px;*/
flex-shrink: 1;
}
.blue {
background: blue;
/* height: 50px;*/
flex-shrink: 1;
}
.green {
background: green;
flex-shrink: 1;
/* height: 20px;*/
}
</style>
<!-- Custom styles for this template -->
<link href="css/dashboard.css" rel="stylesheet">
<div class="container">
<div class="item red"></div>
<div class="item blue"></div>
<div class="item green"></div>
</div>
<div class="container2">
<div class="item red"></div>
<div class="item blue"></div>
<div class="item green"></div>
</div>
</head>
<body>
</body>
</html>