Changes for page LSS-P - Mechanical

Last modified by Eric Nantel on 2024/07/03 09:43

From version < 31.1 >
edited by Eric Nantel
on 2023/07/07 14:41
To version < 26.1 >
edited by Eric Nantel
on 2023/07/07 14:37
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,53 +1,78 @@
1 1  {{html}}
2 -<!DOCTYPE html>
3 3  <html>
4 4  <head>
5 5   <style>
6 - .table-container {
7 - display: flex;
5 + table {
6 + width: 100%;
7 + border-collapse: collapse;
8 8   }
9 9  
10 - .table-container table {
11 - flex: 1;
10 + th, td {
11 + padding: 8px;
12 + text-align: left;
13 + border-bottom: 1px solid #ddd;
12 12   }
15 +
16 + /* Media query for mobile devices */
17 + @media only screen and (max-width: 600px) {
18 + /* Remove the table's default styles */
19 + table, thead, tbody, th, td, tr {
20 + display: block;
21 + }
22 +
23 + /* Hide table headers (th) */
24 + thead tr {
25 + position: absolute;
26 + top: -9999px;
27 + left: -9999px;
28 + }
29 +
30 + td {
31 + border: none;
32 + position: relative;
33 + padding-left: 50%;
34 + }
35 +
36 + /* Add a background color to the table rows */
37 + tr {
38 + margin-bottom: 20px;
39 + }
40 +
41 + /* Display the data in each cell */
42 + td:before {
43 + position: absolute;
44 + top: 6px;
45 + left: 6px;
46 + width: 45%;
47 + padding-right: 10px;
48 + white-space: nowrap;
49 + }
50 + }
13 13   </style>
14 14  </head>
15 15  <body>
16 - <div class="table-container">
17 - <table>
18 - <thead>
19 - <tr>
20 - <th>Table 1</th>
21 - </tr>
22 - </thead>
23 - <tbody>
24 - <tr>
25 - <td>Data 1</td>
26 - </tr>
27 - <tr>
28 - <td>Data 2</td>
29 - </tr>
30 - <!-- Add more rows as needed -->
31 - </tbody>
32 - </table>
33 -
34 - <table>
35 - <thead>
36 - <tr>
37 - <th>Table 2</th>
38 - </tr>
39 - </thead>
40 - <tbody>
41 - <tr>
42 - <td>Data A</td>
43 - </tr>
44 - <tr>
45 - <td>Data B</td>
46 - </tr>
47 - <!-- Add more rows as needed -->
48 - </tbody>
49 - </table>
50 - </div>
54 + <table>
55 + <thead>
56 + <tr>
57 + <th>Name</th>
58 + <th>Age</th>
59 + <th>Email</th>
60 + </tr>
61 + </thead>
62 + <tbody>
63 + <tr>
64 + <td>John Doe</td>
65 + <td>25</td>
66 + <td>[email protected]</td>
67 + </tr>
68 + <tr>
69 + <td>Jane Smith</td>
70 + <td>30</td>
71 + <td>[email protected]</td>
72 + </tr>
73 + <!-- Add more rows as needed -->
74 + </tbody>
75 + </table>
51 51  </body>
52 52  </html>
53 53  {{/html}}
Copyright RobotShop 2018