File tree 1 file changed +99
-0
lines changed
1 file changed +99
-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
+ < title > Table</ title >
8
+ < link rel ="preconnect " href ="https://fonts.googleapis.com " />
9
+ < link rel ="preconnect " href ="https://fonts.gstatic.com " crossorigin />
10
+ < link
11
+ href ="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap "
12
+ rel ="stylesheet "
13
+ />
14
+
15
+ < style >
16
+ * {
17
+ margin : 0 ;
18
+ padding : 0 ;
19
+ box-sizing : border-box;
20
+ }
21
+
22
+ body {
23
+ font-family : "Inter" , sans-serif;
24
+ color : # 343a40 ;
25
+ line-height : 1 ;
26
+ display : flex;
27
+ justify-content : center;
28
+ font-size : 18px ;
29
+ }
30
+
31
+ table {
32
+ width : 800px ;
33
+ /* background-color: red; */
34
+ margin-top : 100px ;
35
+ /* border: 1px solid #343a40; */
36
+ border-collapse : collapse;
37
+ }
38
+
39
+ th ,
40
+ td {
41
+ /* border: 1px solid #343a40; */
42
+ padding : 16px 24px ;
43
+ text-align : left;
44
+ }
45
+
46
+ thead th {
47
+ background-color : # 087f5b ;
48
+ color : white;
49
+ width : 25% ;
50
+ }
51
+
52
+ tbody tr : nth-child (odd) {
53
+ background-color : # f8f9fa ;
54
+ }
55
+
56
+ tbody tr : nth-child (even) {
57
+ background-color : # e9ecef ;
58
+ }
59
+ </ style >
60
+ </ head >
61
+ < body >
62
+ < table >
63
+ < thead >
64
+ < tr >
65
+ < th > Chair</ th >
66
+ < th > The Laid Back</ th >
67
+ < th > The Worker Bee</ th >
68
+ < th > The Chair 4/2</ th >
69
+ </ tr >
70
+ </ thead >
71
+ < tbody >
72
+ < tr >
73
+ < th > Width</ th >
74
+ < td > 80 cm</ td >
75
+ < td > 60 cm</ td >
76
+ < td > 220 cm</ td >
77
+ </ tr >
78
+ < tr >
79
+ < th > Height</ th >
80
+ < td > 100 cm</ td >
81
+ < td > 110 cm</ td >
82
+ < td > 90 cm</ td >
83
+ </ tr >
84
+ < tr >
85
+ < th > Depth</ th >
86
+ < td > 70 cm</ td >
87
+ < td > 65 cm</ td >
88
+ < td > 80 cm</ td >
89
+ </ tr >
90
+ < tr >
91
+ < th > Weight</ th >
92
+ < td > 16 kg</ td >
93
+ < td > 22 kg</ td >
94
+ < td > 80 kg</ td >
95
+ </ tr >
96
+ </ tbody >
97
+ </ table >
98
+ </ body >
99
+ </ html >
You can’t perform that action at this time.
0 commit comments