-
Notifications
You must be signed in to change notification settings - Fork 0
/
03-table.html
112 lines (101 loc) · 2.26 KB
/
03-table.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<title>Accordion Component</title>
<style>
/*
SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/
/*
MAIN COLOR: #087f5b
GREY COLOR: #343a40
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Inter", sans-serif;
color: #343a40;
line-height: 1;
display: flex;
justify-content: center;
}
table {
width: 800px;
margin-top: 100px;
font-size: 18px;
/* border: 1px solid #343a40; */
border-collapse: collapse;
}
th,
td {
/* border: 1px solid #343a40; */
padding: 16px 24px;
text-align: left;
}
thead tr {
background-color: #087f5b;
color: #fff;
}
thead th {
width: 25%;
}
tbody tr:nth-child(odd) {
background-color: #f8f9fa;
}
tbody tr:nth-child(even) {
background-color: #e9ecef;
}
</style>
</head>
<body>
<table>
<thead>
<tr>
<th>Chair</th>
<th>The Laid Back</th>
<th>The Worker Bee</th>
<th>The Chair 4/2</th>
</tr>
</thead>
<tbody>
<tr>
<th>Width</th>
<td>80 cm</td>
<td>60 cm</td>
<td>220 cm</td>
</tr>
<tr>
<th>Height</th>
<td>100 cm</td>
<td>110 cm</td>
<td>90 cm</td>
</tr>
<tr>
<th>Depth</th>
<td>70 cm</td>
<td>65 cm</td>
<td>80 cm</td>
</tr>
<tr>
<th>Weight</th>
<td>16 kg</td>
<td>22 kg</td>
<td>80 kg</td>
</tr>
</tbody>
</table>
</body>
</html>