File: dom_table.html

package info (click to toggle)
php-dompdf 0.6.1%2Bdfsg-2~bpo70%2B2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 4,200 kB
  • sloc: php: 19,599; makefile: 38; sh: 13
file content (108 lines) | stat: -rw-r--r-- 1,692 bytes parent folder | download | duplicates (5)
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<style>
body { font-family: verdana, sans-serif;} 
table {
  margin-bottom: 2em;
}

thead {
  background-color: #eeeeee;
}

tbody {
  background-color: #ffffee;
}

th,td {
  padding: 3pt;
}

table.separate {
  border-collapse: separate;
  border-spacing: 5pt;
  border: 3pt solid #33d;
}

table.separate td {
  border: 2pt solid #33d;
}

table.collapse {
  border-collapse: collapse;
  border: 1pt solid black;  
}

table.collapse td {
  border: 1pt solid black;
}
</style>

</head>

<body>

border-collapse: separate
<table class="separate"> 
<thead>
  <tr>
    <th>head 1</th>
    <th>head 2</th>
    <th>head 3</th>
    <th>head 4</th>
  </tr>
</thead>
  <tr>
    <td rowspan="2">cell 1</td>
    <td>cell 2</td>
    <td colspan="2">cell 3</td>
  </tr>
  <tr>
    <td style="border: 4px double black" colspan="2">cell 4</td>
    <td rowspan="2">cell 5</td>
  </tr>
  <tr>
    <td colspan="3">cell 6</td>
  </tr>
  <tr>
    <td colspan="4">cell 7</td>
  </tr>
</table>

border-collapse: collapse
<table class="collapse"> 
<thead>
  <tr>
    <th>head 1</th>
    <th>head 2</th>
    <th>head 3</th>
    <th>head 4</th>
  </tr>
</thead>
  <tbody>
  <tr>
    <td>cell 1</td>
    <td>cell 2</td>
    <td>cell 3</td>
    <td>cell 4</td>
  </tr>
  <tr>
    <td colspan="2">cell 5</td>
    <td>cell 6</td>
    <td>cell 7</td>
  </tr>
  <tr>
    <td>cell 8</td>
    <td>cell 9</td>
    <td colspan="2">cell 10</td>
  </tr>
  </tbody>
  <tr>
    <td colspan="4">cell 11</td>
  </tr>
</table>


</body> </html>