forked from SuperSimpleDev/github-pages-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.html
60 lines (56 loc) · 1.84 KB
/
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
<!DOCTYPE html>
<html>
<head>
<title>Grid Practice</title>
</head>
<body style="padding-bottom: 1000px;">
<div style="
display: grid;
grid-template-columns: 100px 100px;
">
<div style="background-color: lightblue;">div 1</div>
<div style="background-color: lightpink;">div 2<p>text</p></div>
</div>
<div style="
margin-top: 30px;
display: grid;
grid-template-columns: 100px 100px 200px;
">
<div style="background-color: lightblue;">100px</div>
<div style="background-color: lightpink;">100px<p>text</p></div>
<div style="background-color: lightblue;">200px</div>
<div style="background-color: lightpink;">100px</div>
</div>
<div style="
margin-top: 30px;
display: grid;
grid-template-columns: 100px 1fr;
">
<div style="background-color: lightblue;">100px</div>
<div style="background-color: lightpink;">1fr</div>
</div>
<div style="
margin-top: 30px;
display: grid;
grid-template-columns: 100px 1fr 2fr;
">
<div style="background-color: lightblue;">100px</div>
<div style="background-color: lightpink;">1fr</div>
<div style="background-color: lightblue;">2fr</div>
</div>
<div style="
margin-top: 30px;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
column-gap: 20px;
row-gap: 40px;
">
<div style="background-color: lightblue; height: 200px;">1fr</div>
<div style="background-color: lightpink; height: 200px;">1fr</div>
<div style="background-color: lightblue; height: 200px;">1fr</div>
<div style="background-color: lightpink; height: 200px;">1fr</div>
<div style="background-color: lightblue; height: 200px;">1fr</div>
<div style="background-color: lightpink; height: 200px;">1fr</div>
</div>
</body>
</html>