-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrid.css
More file actions
46 lines (46 loc) · 703 Bytes
/
grid.css
File metadata and controls
46 lines (46 loc) · 703 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
46
* {
margin: 0;
padding: 0;
}
body {
background-color: black;
color: white;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
width: 500px;
height: 300px;
display: grid;
grid-template-rows: 1fr 1fr 1fr;
grid-template-columns: repeat(5, 1fr);
gap: 10px;
background-color: antiquewhite;
padding: 10px;
text-align: center;
justify-items: center;
align-items: center;
}
.box {
background-color: teal;
border-radius: 10px;
padding: 20px;
}
/*
.first {
grid-row: 1/3;
grid-column: 1/3;
}
.second {
grid-column: 3/6;
}
.third {
grid-row: 3/4;
grid-column: 1/3;
}
.fourth {
grid-column: 3/5;
grid-row: 2/4;
} */