-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustify content.html
138 lines (123 loc) · 3.24 KB
/
justify content.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=, initial-scale=1.0">
<title>Fundamentos - Justify Content</title>
<style>
.container {
max-width: 400px;
border: 1px solid black;
margin: 0;
display: flex;
margin-bottom: 10px;
}
.item {
background-color: blue;
margin: 5px;
text-align: center;
color: white;
}
.flex-start {
justify-content: flex-start;
}
.flex-end {
justify-content: flex-end;
}
.center {
justify-content: center;
}
.space-between {
justify-content: space-between;
}
.space-around {
justify-content: space-around;
}
.column {
flex-direction: column;
min-height: 300px;
}
</style>
</head>
<body>
<h1>ROW</h1>
<p>flex-start</p>
<section class="container flex-start">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
</section>
<p>flex-end</p>
<section class="container flex-end">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
</section>
<p>center</p>
<section class="container center">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
</section>
<p>space-between</p>
<section class="container space-between">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
</section>
<p>space-around</p>
<section class="container space-around">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
</section>
<h1>COLLUMN</h1>
<p>flex start (column)</p>
<section class="container flex-start column">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
</section>
<p>flex-end (column)</p>
<section class="container flex-end column">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
</section>
<p>center (column)</p>
<section class="container center column">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
</section>
<p>space-between (column)</p>
<section class="container space-between column">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
</section>
<p>space-around (column)</p>
<section class="container space-around column">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
</section>
</body>
</html>