-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisplay.css
More file actions
109 lines (91 loc) · 1.93 KB
/
Copy pathdisplay.css
File metadata and controls
109 lines (91 loc) · 1.93 KB
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
#d1, #d2, #s1, #s2{
width: 200px;
height: 200px;
border: 1px solid #000;
margin: 10px;
}
#d1{
display: block; /* estilo blocos*/
/*display: none; /* desabilita o elemento */
/*visibility: hidden; /* Apenas deixa o elemento invisivel */
}
#s1{
display: inline; /* estilo em uma linha*/
}
#d2{
display: block;
}
#s2{
display: inline-block; /* estilo em uma linha respeitando os padroes block*/
}
p{
border: 1px solid #000;
background-color: tomato;
width: 200px;
height: 200px;
display: table-cell; /* se comporta como uma célula de tabela*/
text-align: center; /* alinha o texto na horizontal*/
vertical-align: middle; /*alinha o texto na vertical*/
}
ol, ul, li {
border: 1px solid #000;
margin: 0px;
padding: 0px;
}
ol{
display: table;
width: 300px;
margin-top: 10px;
}
ul{
display: table-row;
}
li{
display: table-cell;
text-align: center;
}
.titulo{
background-color: turquoise;
}
section{
border: 3px solid #f00;
display: flex;
min-width: 500px; /* tamanho minimo do container*/
flex-wrap: wrap; /* quebra de linha no elemento*/
justify-content: center; /* alinhamento horizontal dos elementos*/
align-items: center; /* alinhamento vertical dos elementos*/
flex-direction: row; /* direção dos elementos*/
}
section div{
border: 1px solid #000;
height: 50px;
/*flex: 1; /* ajusta a largura do elemento filho ao elemento pai(grow shrink basis)*/
}
#div1{
order: 1; /* muda a ordem dos elementos*/
width: 100px;
flex-grow: 1; /* expande o elemento*/
}
#div2{
order: 2;
width: 100px;
}
#div3{
order: 3;
width: 100px;
flex-basis: 50% ; /* quantidade de ocupação do container*/
}
#div4{
order: 4;
width: 100px;
}
#div5{
order: 5;
width: 100px;
flex-shrink: 1; /* retrai o elemento*/
}
#div6{
order: 6;
width: 100px;
flex-grow: 1;
}