-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcssgrid.css
More file actions
55 lines (48 loc) · 1.16 KB
/
Copy pathcssgrid.css
File metadata and controls
55 lines (48 loc) · 1.16 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
body{
font-family: arial;
color: #000;
}
.container{
display: grid;
grid-template-columns:auto auto auto auto;/* quantidade e tamanho das colunas*/
/* grid-template-rows: 150px 50px; /* quantidade de linhas*/
column-gap: 10px; /*espaçamento entre as colunas*/
row-gap: 10px; /* espaço entre as linhas*/
gap: 5px; /* espaço entre as linhas e espaçamento entre as colunas juntos*/
}
.item{
background-color: #048;
color: white;
border: 1px solid #000;
text-align: center;
}
.startend{
grid-column-start: 1; /*indica aonde começa o grid*/
grid-column-end: 3; /* indica aonde termina o grid*/
}
.gridarea{
grid-area: 1 / 1 / 3 / 3; /*linha inicial,coluna inicial,linha termina,coluna termina*/
border-radius: 10px;
}
.template{
display: grid;
grid-template-columns: auto auto auto auto;
grid-row: auto;
grid-template-areas:
"header header header header"
"principal principal principal lateral"
"footer footer footer footer"
;
}
.header{
grid-area: header;
}
.principal{
grid-area: principal;
}
.lateral{
grid-area: lateral;
}
.footer{
grid-area: footer;
}