-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathgrid2.css
More file actions
45 lines (41 loc) · 792 Bytes
/
grid2.css
File metadata and controls
45 lines (41 loc) · 792 Bytes
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
*,*::before, *::after{
box-sizing: border-box;
margin-top: 0;
}
body{
background-color: black;
}
h1,h3{
color: aquamarine;
}
a[href]{
color: orange;
}
/*Griding starts here*/
.grid{
display: grid;
/* grid-template-columns: 30px 30px auto; */
grid-template-columns: 2.5fr 1fr;
/* grid-auto-rows: 100px; */
grid-auto-columns:minmax(200px, auto);
grid-gap: 20px;
}
.grid > div{
background-color: #eee;
padding: 1em;
}
/*nth child odd selects the odd child*/
.grid > div:nth-child(odd){
background-color: rgb(126, 125, 125);
}
/*Nested grid starts here*/
.nested{
display: grid;
grid-template-columns:repeat(4, 1fr);
grid-auto-rows: 70px;
grid-gap: .2em;
}
.nested > div{
border: 2px solid red;
padding: 0.3em;
}