File: nested_table.html

package info (click to toggle)
xhtml2pdf 0.2.17%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,412 kB
  • sloc: python: 12,740; makefile: 247; xml: 24
file content (84 lines) | stat: -rw-r--r-- 1,546 bytes parent folder | download
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>Nested Table</title>
		<style type="text/css">
body {
	color: #003366;
	background-color: #FFFFFF;
	font-family: Verdana, Tahoma, sans-serif;
	font-size: 11px;
}

table {
	line-height: 10pt;
	width: 100%;
}

th {
	background-color: #ffd700;
	padding: 0.1cm 0cm 0cm 0cm;
	-pdf-word-wrap: CJK;
}

td {
	padding: 0.1cm 0cm 0cm 0cm;
	vertical-align: top;
	background-color: #ffffcc;
	-pdf-word-wrap: CJK;
}
</style>
	</head>
	<body>
		<div>
			<table border="1" width="100%">
				<thead>
					<tr>
						<th>Column A</th>
						<th>Column B</th>
						<th>Column C</th>
						<th>Column D</th>
						<th>Column E</th>
						<th>Column F</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td>Value A</td>
						<td>Value B</td>
						<td></td>
						<td></td>
						<td>
							<ul>
								<li>
									<table border="1" width="100%">
										<thead>
											<tr>
												<th>Column 1</th>
												<th>Column 2</th>
												<th>Column 3</th>
												<th>Column 4</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td>Value 1</td>
												<td>Value 2</td>
												<td></td>
												<td>
													Here is a sentence that is fifty-four characters long.
													100 Hello WORLD, H.W.
												</td>
											</tr>
										</tbody>
									</table>
								</li>
							</ul>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</body>
</html>