-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (51 loc) · 1.4 KB
/
index.html
File metadata and controls
59 lines (51 loc) · 1.4 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Responsive table examples</title>
<!-- Meta-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<script src="https://code.jquery.com/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="responsive-table.css">
<style type="text/css">
body{max-width: 650px;margin: 20px auto;background-color: linen}
table{margin: 10px auto;background: white;padding: 10px;border-radius: 5px;}
</style>
</head>
<!-- begin body output -->
<body>
<table class="reponsive-table">
<thead>
<tr>
<th colspan="3">Header 1</th>
</tr>
<tr>
<th>Header 2</th>
<th>Header 3</th>
<th>Header 4</th>
</tr>
</thead>
<tbody>
<tr>
<td data-head="2">TD #0</td>
<td data-head="3">TD #1</td>
<td data-head="4">TD #2</td>
</tr>
<tr>
<td data-head="1">TD #3</td>
<td data-head="1">TD #4</td>
<td data-head="1">TD #5</td>
</tr>
<tr>
<td data-head="2">TD #6</td>
<td data-head="3">TD #7</td>
<td data-head="4">TD #8</td>
</tr>
</tbody>
</table>
<script>
</script>
<!-- JAVASCRIPT -->
<script type="text/javascript" src="responsive-table.js"></script>
</body>
<!-- end body output -->
</html>