-
Notifications
You must be signed in to change notification settings - Fork 0
/
parte-5.html
69 lines (69 loc) · 1.51 KB
/
parte-5.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
<!-- Este é o código da parte 5 da série de Grid Layout do blog Oh My Code. -->
<!-- Acesse: ohmycode.com.br -->
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>Grid Layout - Parte 5</title>
<style>
*{
margin: 0;
font-family: arial;
}
.color-1{
background-color: #1C35CF;
}
.color-2{
background-color: #8A33FA;
}
.color-3{
background-color: #BD43C0;
}
.color-4{
background-color: #DD375B;
}
.color-5{
background-color: #1A9541;
}
.color-6{
background-color: #D44024;
}
.color-7{
background-color: #E78A30;
}
.color-8{
background-color: #353030;
}
.grid{
display: grid;
grid-template-columns: repeat(4, 2fr);
grid-template-rows: 100px 100px;
grid-gap: 10px;
/*grid-auto-flow: column;*/
}
.grid-item{
order: 19;
color: white;
padding: 20px;
}
.element-5{
order: 1;
}
.element-8{
order: 10;
}
</style>
</head>
<body>
<div class="grid">
<div class="grid-item color-1 element-1">1</div>
<div class="grid-item color-2 element-2">2</div>
<div class="grid-item color-3 element-3">3</div>
<div class="grid-item color-4 element-4">4</div>
<div class="grid-item color-5 element-5">5</div>
<div class="grid-item color-6 element-6">6</div>
<div class="grid-item color-7 element-7">7</div>
<div class="grid-item color-8 element-8">8</div>
</div>
</body>
</html>