-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss-implicit-explicit-grid.html
79 lines (70 loc) · 1.44 KB
/
css-implicit-explicit-grid.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
<!DOCTYPE html>
<html>
<head>
<title>Css Implicit /Expliit grid</title>
<style type="text/css">
.container{
background-color: lightgreen;
width: 700px;
margin: 70px 0 0 50px;
display: grid;
/*we created - explicite grid // css apply */
grid-template-columns: repeat(3,1fr);
grid-template-rows: repeat(2,100px) ;
/*grid-gap:25px 50px;*/
/*automatically generated row */
/*implicite grid*/
/*by default rows will created */
/*but -> column create kre automatically*/
/*?*/
/*grid-auto-flow:row;*/
grid-auto-flow: column;
grid-auto-columns:1fr;
/*grid-auto-rows: 200px;*/
}
#item1{
background-color: orange;
}
#item2{
background-color: red;
}
#item3{
background-color: green;
}
#item4{
background-color: blue; }
#item5{
background-color: gray;
}
#item6{
background-color: purple;
}
#item7{
background-color: hotpink;
}
#item8{
background-color: gold;
}
#item9{
background-color: dodgerblue;
}
#item10{
background-color: skyblue;
}
</style>
</head>
<body>
<div class="container">
<div id="item1">1</div>
<div id="item2">2</div>
<div id="item3">3</div>
<div id="item4">4</div>
<div id="item5">5</div>
<div id="item6">6</div>
<div id="item7">7</div>
<div id="item8">8</div>
<div id="item9">9</div>
<div id="item10">10</div>
</div>
</body>
</html>