-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
68 lines (55 loc) · 1.16 KB
/
main.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
64
65
66
67
68
.grid div {
background: #ecf0f1;
padding: 1em;
}
.grid > div:hover {
border: 1px solid #f1c40f;
}
.grid {
display: grid;
/*grid-template-columns: 33% 33% 33%; //Ancho de columnas
grid-template-rows: auto 100px; //Ancho de Filas
gap: 1em; //separación de elementos
column-gap: 1em;
row-gap: 1em;
grid-template-columns: 1fr 1fr 1fr 1fr;**/
grid-template-columns: repeat(3, 1fr);
gap: 1em;
grid-auto-rows: minmax(100px, auto);
/*justify-items: stretch ; /*flexbox horizontal*/
align-items: stretch; /*flexbox vertical*/
}
.element1{
grid-column: 1/4;
/*align-self: flex-start;*/
}
.element2 {
/*align-self: center;*/
grid-column: 1/3;
grid-row: 2/4
}
/*.element3 {
align-self: flex-end;
}
.element4 {
justify-self: flex-start;
}*/
.element5 {
/*justify-self: center;*/
grid-column: auto;
}
.element6 {
/*justify-self: flex-end;*/
grid-column: 2/4;
}
/*.nested-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: 100px;
gap: 1em;
}
.nested-grid div {
border: 1px solid #000;
background: #f1c40f;
padding: 1em;
}*/