File tree Expand file tree Collapse file tree 1 file changed +117
-0
lines changed Expand file tree Collapse file tree 1 file changed +117
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
+
8
+ < title > Table Component</ title >
9
+
10
+ < link rel ="preconnect " href ="https://fonts.googleapis.com ">
11
+ < link rel ="preconnect " href ="https://fonts.gstatic.com " crossorigin >
12
+ < link href ="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap " rel ="stylesheet ">
13
+
14
+ < style >
15
+ /*
16
+ SPACING SYSTEM (px)
17
+ 2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
18
+
19
+ FONT SIZE SYSTEM (px)
20
+ 10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
21
+ */
22
+
23
+ /*
24
+ MAIN COLOR: #087f5b
25
+ GRAY: #343a40
26
+ */
27
+
28
+ * {
29
+ margin : 0 ;
30
+ padding : 0 ;
31
+ box-sizing : border-box;
32
+ }
33
+
34
+ /* ------------------------ */
35
+ /* GENERAL STYLES */
36
+ /* ------------------------ */
37
+ body {
38
+ color : # 343a40 ;
39
+ display : flex;
40
+ font-family : 'Inter' , sans-serif;
41
+ justify-content : center;
42
+ line-height : 1 ;
43
+ }
44
+
45
+ table {
46
+ /* border: 1px solid #343a40; */
47
+ border-collapse : collapse;
48
+ font-size : 18px ;
49
+ margin-top : 100px ;
50
+ width : 600px ;
51
+ }
52
+
53
+ td , th {
54
+ /* border: 1px solid #343a40; */
55
+ padding : 16px 24px ;
56
+ text-align : left;
57
+ }
58
+
59
+ thead th {
60
+ width : 25% ;
61
+ }
62
+
63
+ thead tr {
64
+ background-color : # 087f5b ;
65
+ color : # fff ;
66
+ }
67
+
68
+ tbody tr : nth-child (odd) {
69
+ background-color : # f8f9fa ;
70
+ }
71
+
72
+ tbody tr : nth-child (even) {
73
+ background-color : # e9ecef ;
74
+ }
75
+ </ style >
76
+ </ head >
77
+
78
+ < body >
79
+ < table >
80
+ < thead >
81
+ < tr >
82
+ < th > Chair</ th >
83
+ < th > The Laid Back</ th >
84
+ < th > The Worker Bee</ th >
85
+ < th > The Chair 4/2</ th >
86
+ </ tr >
87
+ </ thead >
88
+
89
+ < tbody >
90
+ < tr >
91
+ < th > Width</ th >
92
+ < td > 80 cm</ td >
93
+ < td > 60 cm</ td >
94
+ < td > 220 cm</ td >
95
+ </ tr >
96
+ < tr >
97
+ < th > Height</ th >
98
+ < td > 100 cm</ td >
99
+ < td > 110 cm</ td >
100
+ < td > 90 cm</ td >
101
+ </ tr >
102
+ < tr >
103
+ < th > Depth</ th >
104
+ < td > 70 cm</ td >
105
+ < td > 65 cm</ td >
106
+ < td > 80 cm</ td >
107
+ </ tr >
108
+ < tr >
109
+ < th > Weight</ th >
110
+ < td > 16 kg</ td >
111
+ < td > 22 kg</ td >
112
+ < td > 80 kg</ td >
113
+ </ tr >
114
+ </ tbody >
115
+ </ table >
116
+ </ body >
117
+ </ html >
You can’t perform that action at this time.
0 commit comments