-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrid.html
More file actions
73 lines (69 loc) · 2 KB
/
grid.html
File metadata and controls
73 lines (69 loc) · 2 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Grid Practice</title>
</head>
<body>
<div
style="
display: grid;
grid-template-columns: 100px 100px;
margin-top: 30px;
"
>
<div style="background-color: lightblue">div 1</div>
<div style="background-color: lightpink">
div 2
<p>text</p>
</div>
</div>
<div
style="
display: grid;
grid-template-columns: 100px 100px 200px;
margin-top: 30px;
"
>
<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="display: grid; grid-template-columns: 100px 1fr; margin-top: 30px"
>
<div style="background-color: lightblue">100px</div>
<div style="background-color: lightpink">1fr</div>
</div>
<div
style="
display: grid;
grid-template-columns: 100px 1fr 2fr;
margin-top: 30px;
"
>
<div style="background-color: lightblue">100px</div>
<div style="background-color: lightpink">1fr</div>
<div style="background-color: lightblue">2fr</div>
</div>
<div
style="
display: grid;
grid-template-columns: 1fr 1fr 1fr;
margin-top: 30px;
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>