-
Notifications
You must be signed in to change notification settings - Fork 1
/
grid_concepts_in_css.html
113 lines (76 loc) · 2.52 KB
/
grid_concepts_in_css.html
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GRID CONCEPTS IN CSS</title>
</head>
<style>
.container{
display: grid;
/* grid-template-columns: 1fr 2fr 3fr; */
/* grid-template-columns: 1fr auto; */
/* grid-template-columns: repeat(10,auto); */
/* grid-column-gap: 2rem; */
/* grid-template-rows: 1fr 4fr auto; */
/* grid-auto-rows: 20fr; */
/* grid-template-rows: 1fr 12fr 3fr; */
/* grid-row-gap: 3rem; */
/* grid-template-columns: 1fr 4fr 2fr ; */
/* grid-auto-rows:5fr ; */
/* grid-template-rows: repeat(4, 50px); */
/* grid-template-columns: repeat(6,200px); */
/* grid-template-columns: 120px 120px 120px; */
/* justify-content: center; */
/* grid-template-columns: repeat(auto-fit,minmax(300px ,400px)); */
}
.items{
border: 2px solid black;
margin: 10px;
padding: 20px;
background-color: #f58b8bf1;
}
/*
.items:first-child{
grid-column-start: 1;
grid-column-end: 3;
grid-row-start:1 ;
grid-row-end: 4;
grid-column: 1 / span 2 ;
grid-row: 1 / span 2;
} */
</style>
<body>
<div class="container">
<div class="items">box-1</div>
<div class="items">box-2</div>
<div class="items">box-3</div>
<div class="items">box-4</div>
<div class="items">box-5</div>
<div class="items">box-6</div>
<div class="items">box-7</div>
<div class="items">box-8</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-9</div>
<div class="items">box-10</div>
</div>
</body>
</html>