-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathgrid3.css
More file actions
55 lines (48 loc) · 804 Bytes
/
grid3.css
File metadata and controls
55 lines (48 loc) · 804 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
47
48
49
50
51
52
53
54
55
*,*::before,*::after{
box-sizing: border-box;
margin-top: 0;
}
body{
background-color: black;
}
h1{
color: aquamarine;
}
h3{
color: bisque;
}
a[href]{
text-decoration: none;
color: orange;
}
/*Grid starts here*/
.container{
display: grid;
grid-template-columns: repeat(3, 2fr);
grid-gap: 1em;
}
.box{
display: grid;
justify-content: center;
align-items: center;
color:orange;
border: 3px solid blue;
}
/*Screen is divided into 4 fractions. when we type 1/3 we are telling the box to grow from 1st fraction to 3rd fraction*/
.box1{
grid-row:1/5;
grid-column:1/3;
}
.box2{
grid-column: 3;
grid-row: 1/5;
}
.box3{
grid-column: 2/5;
grid-row: 5;
}
.box4{
border: 3px solid red;
grid-column: 1;
grid-row: 2/6;
}