-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalign-itens.html
executable file
·101 lines (100 loc) · 4.33 KB
/
align-itens.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
<!DOCTYPE html>
<html lang="pt-br">
<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">
<link rel="stylesheet" type="text/css" href="./assets/css/align.css" />
<title>alinhamento itens</title>
</head>
<body>
<h2>Flex row padrao</h2>
<section class="container">
<div class="item">item 1</div>
<div class="item">faefasdfr fdsrew fegsfgges gheeteges fdasdr resadggasd</div>
<div class="item">item 3</div>
<div class="item">12324 532523 5324442 325667 35789</div>
</section>
<h2>Flex row align itens centro</h2>
<section class="container center">
<div class="item">item 1</div>
<div class="item">faefasdfr fdasdr resadggasd</div>
<div class="item">item 3</div>
<div class="item">12324 532523 5324442 325667 35789</div>
</section>
<h2>Flex row align itens stretch</h2>
<section class="container stretch">
<div class="item">item 1</div>
<div class="item">faefasdfr fdasdr resadggasd</div>
<div class="item">item 3</div>
<div class="item">12324 532523 5324442 9-90987 0984738 325667 35789</div>
</section>
<h2>Flex row align itens flex start</h2>
<section class="container start">
<div class="item">item 1</div>
<div class="item">faefasdfr fdasdr resadggasd</div>
<div class="item">item 3</div>
<div class="item">12324 532523 5324442 9-90987 0984738 325667 35789</div>
</section>
<h2>Flex row align itens flex end</h2>
<section class="container end">
<div class="item">item 1</div>
<div class="item">faefasdfr fdasdr resadggasd</div>
<div class="item">item 3</div>
<div class="item">12324 532523 5324442 9-90987 0984738 325667 35789</div>
</section>
<h2>Flex row align itens baseline</h2>
<section class="container baseline">
<div class="item"><br />item 1</div>
<div class="item">faefasdfr fdasdr resadggasd</div>
<div class="item">item 3</div>
<div class="item">12324 532523 5324442 9-90987 0984738 325667 35789</div>
</section>
<h2>Flex colunm padrao</h2>
<section class="container colunm">
<div class="item">item 1</div>
<div class="item">faefasdfr fdsrew fegsfgges gheeteges fdasdr resadggasd</div>
<div class="item">item 3</div>
<div class="item">12324 532523 5324442 325667 35789</div>
</section>
<h2>Flex colunm align itens centro</h2>
<section class="container center colunm">
<div class="item">item 1</div>
<div class="item">faefasdfr fdasdr resadggasd</div>
<div class="item">item 3</div>
<div class="item">12324 532523 5324442 325667 35789</div>
</section>
<h2>Flex colunm align itens stretch</h2>
<section class="container stretch colunm">
<div class="item">item 1</div>
<div class="item">faefasdfr fdasdr resadggasd</div>
<div class="item">item 3</div>
<div class="item">12324 532523 5324442 9-90987 0984738 325667 35789</div>
</section>
<h2>Flex colunm align itens flex start</h2>
<section class="container start colunm">
<div class="item">item 1</div>
<div class="item">faefasdfr fdasdr resadggasd</div>
<div class="item">item 3</div>
<div class="item">12324 532523 5324442 9-90987 0984738 325667 35789</div>
</section>
<h2>Flex colunm align itens flex end</h2>
<section class="container end colunm">
<div class="item">item 1</div>
<div class="item">faefasdfr fdasdr resadggasd</div>
<div class="item">item 3</div>
<div class="item">12324 532523 5324442 9-90987 0984738 325667 35789</div>
</section>
<h2>Flex colunm align itens baseline</h2>
<section class="container baseline colunm">
<div class="item">item 1</div>
<div class="item">faefasdfr fdasdr resadggasd</div>
<div class="item">item 3</div>
<div class="item">12324 532523 5324442 9-90987 0984738 325667 35789</div>
</section>
<h2>alinhamento central em x e y</h2>
<section class="container center central">
<div class="item">Este texto é um exemplo de como ficaria um texto longo centralizado dentro de uma div nos eixos x e y. Aqui fizemos o flex ser igual a zero</div>
</section>
</body>
</html>