-
Notifications
You must be signed in to change notification settings - Fork 0
/
aula03.css
63 lines (52 loc) · 875 Bytes
/
aula03.css
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
/* Grid */
.grid {
display: grid;
grid-template-columns: 1fr 1fr;
}
.grid-template-rows-1 {
grid-template-rows: 50px 100px 50px 150px;
}
.grid-template-rows-2 {
grid-template-rows: 100px 100px;
}
.grid-template-rows-3 {
grid-template-rows: 1fr 2fr 1fr 3fr;
}
.grid-template-rows-4 {
grid-template-columns: 100px auto 50px;
grid-template-rows: 50px 200px auto;
}
/* Grid Item */
.item {
margin: 5px;
background: tomato;
text-align: center;
font-size: 1.5em;
}
.grid {
max-width: 400px;
margin: 0 auto;
border: 1px solid #ccc;
}
h1 {
text-align: center;
font-size: 1.25em;
font-weight: normal;
}
body {
font-family: monospace;
color: #333;
padding-bottom: 60px;
margin: 0px;
}
body > div {
padding: 40px 0;
}
body > div:nth-of-type(even) {
background: rgba(0,0,0,.03);
}
body > div > img {
display: block;
margin: 0 auto;
max-width: 100%;
}