Wiki source code of LSS-P - Mechanical

Version 27.1 by Eric Nantel on 2023/07/07 14:39

Show last authors
1 {{html}}
2 <!DOCTYPE html>
3 <html>
4 <head>
5 <style>
6 table {
7 width: 100%;
8 border-collapse: collapse;
9 }
10
11 th, td {
12 padding: 8px;
13 text-align: left;
14 border-bottom: 1px solid #ddd;
15 }
16
17 /* Media query for mobile devices */
18 @media only screen and (max-width: 600px) {
19 /* Stack the table columns vertically */
20 td {
21 display: block;
22 }
23
24 /* Add spacing between stacked columns */
25 td:not(:first-child) {
26 margin-top: 10px;
27 }
28
29 /* Hide table headers (th) */
30 th {
31 display: none;
32 }
33 }
34 </style>
35 </head>
36 <body>
37 <table>
38 <thead>
39 <tr>
40 <th>Column 1</th>
41 <th>Column 2</th>
42 </tr>
43 </thead>
44 <tbody>
45 <tr>
46 <td>Data 1</td>
47 <td>Data 2</td>
48 </tr>
49 <tr>
50 <td>Data 3</td>
51 <td>Data 4</td>
52 </tr>
53 <!-- Add more rows as needed -->
54 </tbody>
55 </table>
56 </body>
57 </html>
58 {{/html}}
Copyright RobotShop 2018