File: captions3.html

package info (click to toggle)
iceweasel 2.0.0.19-0etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 298,784 kB
  • ctags: 317,912
  • sloc: cpp: 1,796,902; ansic: 987,677; xml: 109,036; makefile: 47,777; asm: 35,201; perl: 26,983; sh: 20,879; cs: 6,232; java: 5,513; python: 3,249; pascal: 459; lex: 306; php: 244; csh: 132; objc: 97; yacc: 79; ada: 49; awk: 14; sql: 4; sed: 4
file content (240 lines) | stat: -rw-r--r-- 6,720 bytes parent folder | download | duplicates (8)
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

<!-- Work done for Netscape.  License unknown. -->

<html lang="en-US">
<head>
<title>Tables and captions</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="copyright" href="/~dbaron/legal.html">
<style type="text/css">

table { border: 10px solid green; }
caption {
        border: medium solid purple;
        caption-side: top;
        }

table.one { width: 300px; }
table.one caption { width: 300px; }

table.two { width: 300px; }
table.two caption { width: 600px; }

table.three { width: 600px; }
table.three caption { width: 300px; }

table.four { margin-top: 20px; }
table.four caption { margin-bottom: 0; }

table.five { margin-top: 0; }
table.five caption { margin-bottom: 20px; }

table.six { margin-top: 15px; }
table.six caption { margin-bottom: 20px; }

table.seven { margin-top: 20px; }
table.seven caption { margin-bottom: 15px; }

table.eight { margin-right: 20px; }
table.eight caption { margin-left: 0; caption-side: right; }

table.nine { margin-right: 0; }
table.nine caption { margin-left: 20px; caption-side: right; }

table.ten { margin-right: 15px; }
table.ten caption { margin-left: 20px; caption-side: right; }

table.eleven { margin-right: 20px; }
table.eleven caption { margin-left: 15px; caption-side: right; }

table.twelve { margin-bottom: 20px; }
table.twelve caption { margin-top: 0; caption-side: bottom; }

table.thirteen { margin-bottom: 0; }
table.thirteen caption { margin-top: 20px; caption-side: bottom; }

table.fourteen { margin-bottom: 15px; }
table.fourteen caption { margin-top: 20px; caption-side: bottom; }

table.fifteen { margin-bottom: 20px; }
table.fifteen caption { margin-top: 15px; caption-side: bottom; }

table.sixteen { margin-left: 20px; }
table.sixteen caption { margin-right: 0; caption-side: left; }

table.seventeen { margin-left: 0; }
table.seventeen caption { margin-right: 20px; caption-side: left; }

table.eighteen { margin-left: 15px; }
table.eighteen caption { margin-right: 20px; caption-side: left; }

table.nineteen { margin-left: 20px; }
table.nineteen caption { margin-right: 15px; caption-side: left; }

</style>
</head>
<body>
<h1>Tables and captions</h1>

<p>
        The table should have width 300px, as should the caption (entirely
        above the table):
</p>

<table class="one">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<p>
        The table should have width 300px, and the caption should have
        width 600px.
</p>

<table class="two">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<p>
        The table should have width 600px, and the caption should have
        width 300px.
</p>

<table class="three">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<p>
        The next four tables should have their caption on the top,
        with a 20px gap between the table and the caption.
</p>

<table class="four">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<table class="five">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<table class="six">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<table class="seven">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>


<p>
        The next four tables should have their caption on the right,
        with a 20px gap between the table and the caption.
</p>

<table class="eight">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<table class="nine">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<table class="ten">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<table class="eleven">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>


<p>
        The next four tables should have their caption on the bottom,
        with a 20px gap between the table and the caption.
</p>

<table class="twelve">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<table class="thirteen">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<table class="fourteen">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<table class="fifteen">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>


<p>
        The next four tables should have their caption on the left,
        with a 20px gap between the table and the caption.
</p>

<table class="sixteen">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<table class="seventeen">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<table class="eighteen">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<table class="nineteen">
        <caption>The table's caption.</caption>
        <tr><td>Data</td><td>Data</td></tr>
        <tr><td>Data</td><td>Data</td></tr>
</table>

<hr title="Beginning of Footer">
<p>(Back to
<a href="./">CSS Testing Information</a>,
<a href="../../">David Baron</a>)</p>
<p><a href="/~dbaron/" title="David Baron's Homepage">LDB</a>,
<a rev="made" href="mailto:dbaron@fas.harvard.edu" TITLE="Send e-mail to David Baron">dbaron@fas.harvard.edu</a></p>

</body></html>