-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (74 loc) · 2.14 KB
/
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
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
<!DOCTYPE html>
<head>
<title>listtable demo</title>
<link rel="stylesheet" href="listtable.css" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<style>
.listtable > dl > dt {
font-weight: 600;
background-color: lightblue;
}
@media screen and (max-width: 699px) {
.listtable > dl {
margin-bottom: 1em;
border-bottom: solid black 1pt;
}
.listtable > dl > dt {
padding-bottom: 5px;
}
.listtable > dl > dd {
padding-bottom: 10px;
}
}
@media screen and (min-width: 700px) {
.listtable > dl:first-child > dt {
padding: 5px 3px 5px 3px;
border-bottom: solid black 1pt;
}
.listtable > dl > dd {
padding: 3px;
}
.listtable > dl:nth-child(even) {
background-color: lightcyan;
}
}
</style>
</head>
<body>
<div style="max-width: 700px;">
<div class="listtable listtable--3columns">
<dl>
<dt>Column 1</dt>
<dd>value 1.1</dd>
<dt>Column 2</dt>
<dd>value 1.2</dd>
<dt>Column 3</dt>
<dd>value 1.3</dd>
</dl>
<dl>
<dt>Column 1</dt>
<dd>value 2.1</dd>
<dt>Column 2</dt>
<dd>value 2.2</dd>
<dt>Column 3</dt>
<dd>value 2.3</dd>
</dl>
<dl>
<dt>Column 1</dt>
<dd>value 3.1</dd>
<dt>Column 2</dt>
<dd>value 3.2</dd>
<dt>Column 3</dt>
<dd>value 3.3</dd>
</dl>
<dl>
<dt>Column 1</dt>
<dd>value 4.1</dd>
<dt>Column 2</dt>
<dd>value 4.2</dd>
<dt>Column 3</dt>
<dd>value 4.3</dd>
</dl>
</div>
</div>
</body>