-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcss-grid-index.html
57 lines (45 loc) · 1.6 KB
/
css-grid-index.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
<html>
<head>
<title>CSS Grid</title>
<link rel="stylesheet" type="text/css" href="./css-grid-stylesheets/style.css"/>
<link rel="stylesheet" type="text/css" href="./css-grid-stylesheets/example-1.css"/>
<link rel="stylesheet" type="text/css" href="./css-grid-stylesheets/example-2.css"/>
<link rel="stylesheet" type="text/css" href="./css-grid-stylesheets/example-3.css"/>
</head>
<body>
<div class="legend-container">
<span class="grey-icon"> - Grid container</span>
<span class="red-icon"> - Grid item</span>
<span class="green-icon"> - Grid item </span>
<span class="blue-icon"> - Grid item</span>
</div>
<h2>Example 1</h2>
<code>{grid-template-columns: 3fr 1fr 1fr; } </code>
<div class="container-ex-1">
<div class="item-1"></div>
<div class="item-2"></div>
<div class="item-3"></div>
<div class="item-2"></div>
</div>
<h2>Example 2</h2>
<p>Grid layout with media queries</p>
<div class="container-ex-2">
<div class="item-1"></div>
<div class="item-2"></div>
<div class="item-3"></div>
</div>
<h2>Example 3</h2>
<code>{grid-template-rows: 1fr 3fr; } </code>
<div class="container-ex-3">
<div class="item-1"></div>
<div class="item-2"></div>
<div class="item-3"></div>
<div class="item-3"></div>
<div class="item-1"></div>
<div class="item-2"></div>
<div class="item-1"></div>
<div class="item-2"></div>
<div class="item-3"></div>
</div>
</body>
</html>