-
Notifications
You must be signed in to change notification settings - Fork 0
/
CSS_Grid.css
65 lines (55 loc) Β· 1.35 KB
/
CSS_Grid.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
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
body{
height: 100vh;
width: 100vw;
}
.container{
background-color: aqua;
height: 100%;
width: 100%;
display: grid;
padding: 4rem;
row-gap: 1rem;
column-gap: 1rem;
/* grid-template-columns: 100px 100px 100px; */
/* Jitne rows hote h utne rows
/* We can use also fr instead of 100px or else */
/* grid-template-rows: 100px 100px ; */
/* grid-template-columns: 1fr 1fr 1fr ; */
/* If we dont want to write again again 100px or else so we can use repeat method */
/* grid-template-rows: repeat(4 ,1fr);
grid-template-columns: repeat(3,1fr); */
grid-template-rows: repeat(6,1fr);
grid-template-columns: repeat(1,1fr);
}
.item{
color: aliceblue;
font-size: 25px;
background-color: rgb(60, 60, 214);
border: solid 5px rgb(24, 16, 16) ;
display: flex;
justify-content:center ;
align-items: center;
}
@media (min-width:768px){
.container{
grid-template-rows: repeat(4 ,1fr);
grid-template-columns: repeat(3,1fr);
}
.header , .footer{
grid-column-start: 1;
grid-column-end: 4;
}
.sidebar{
grid-row-start: 2 ;
grid-row-end: 4 ;
}
.tom{
grid-column-start: 2;
grid-column-end: 4;
}
}