3 <META HTTP-EQUIV=
"Content-Type" CONTENT=
"text/html; charset=iso-8859-1">
4 <META NAME=
"GENERATOR" CONTENT=
"Mozilla/4.09 [en] (WinNT; U) [Netscape]">
7 BODY { font-size:
12pt; background-image: url(../images/bg.jpg); }
9 <meta name=
"crc" content=
250397440>
14 Example
4: Some simple tables.
</H1>
18 <TH BACKGROUND=
"../images/rock_gra.gif">Color
</TH>
20 <TH BACKGROUND=
"../images/rock_gra.gif">Meaning
</TH>
24 <TD BGCOLOR=
"#90EE90">lightgreen
</TD>
26 <TD>Light green is used on cells that have a colspan
</TD>
30 <TD BGCOLOR=
"#F0E68C">khaki
</TD>
32 <TD>Khaki is used on cells that have a rowspan
</TD>
36 <TD BGCOLOR=
"#D3D3D3">lightgrey
</TD>
38 <TD>Light grey is used on cells that have a rowspan
<B>and
</B> a colspan
</TD>
43 <TABLE BORDER
WIDTH=
"100%" >
44 <CAPTION>Table
1 has this caption at the top.
It is defined to be
100%
45 of it's parent's width.
</CAPTION>
48 <TD COLSPAN=
"2" BGCOLOR=
"#90EE90">Cell
</TD>
50 <TD>Stuff to test out table cell layout. This should be long enough.
</TD>
56 <TD COLSPAN=
"2" BGCOLOR=
"#90EE90">Stuff to test out table cell layout.
57 This should be long enough.
</TD>
63 <TD>Stuff to test out table cell layout. This should be long enough.
</TD>
71 <CAPTION>Table
2 has auto-width (no width param specified.)
</CAPTION>
76 <TD COLSPAN=
"2" ROWSPAN=
"2" BGCOLOR=
"#D3D3D3">Stuff to test out table cell
77 layout. This should be long enough.
</TD>
87 <TD>Stuff to test out table cell layout. This should be long enough.
</TD>
93 <TABLE BORDER COLS=
3 >
94 <CAPTION>Table
3 is the same as Table
2, but with equal column widths.
</CAPTION>
99 <TD COLSPAN=
"2" ROWSPAN=
"2" BGCOLOR=
"#D3D3D3">Stuff to test out table cell
100 layout. This should be long enough.
</TD>
110 <TD>Stuff to test out table cell layout. This should be long enough.
</TD>
116 <table cellpadding=
2 style=
"border-collapse:collapse">
117 <CAPTION ALIGN=BOTTOM
>Table
4 has this bottom caption. The table has specified
118 column widths and collapsing borders.
</CAPTION>
120 <col width=
90 style=
"border-left: 2px solid black; border-right:2px dashed blue">
121 <col width=
80 style=
"border-right:1px solid red">
122 <col width=
80 style=
"border-right:2px solid black">
125 <thead style=
"border-bottom: 6px solid black">
126 <tr style=
"border: 2px solid black;">
127 <th style=
"border-right: hidden">Player
</th>
128 <th style=
"border-right: hidden">Ranking
</th>
134 <tr style=
"border: 2px solid black">
136 <td align=center
>1</td>
137 <td align=center
>77-
0</td>
139 <tr style=
"border: 2px solid black">
141 <td align=center
>2</td>
142 <td align=center
>67-
10</td>
144 <tr style=
"border: 2px solid black">
146 <td align=center
>3</td>
147 <td align=center
>57-
15</td>
154 <CAPTION ALIGN=BOTTOM
>Table
5 has a scrolling tbody.
</CAPTION>
156 <tr><td colspan=
2 style=
"font-size: 8pt; font-weight: bold">HEADER
159 <tbody style=
"overflow: auto; height: 200px; border: 1px solid black">
160 <tr><td>cell-
00<td>cell-
01<td>cell-
02<td>cell-
03</tr>
161 <tr><td>cell-
10<td>cell-
11<td>cell-
12<td>cell-
13</tr>
162 <tr><td>cell-
20<td>cell-
21<td>cell-
22<td>cell-
23</tr>
163 <tr><td>cell-
30<td>cell-
31<td>cell-
32<td>cell-
33</tr>
164 <tr><td>cell-
40<td>cell-
41<td>cell-
42<td>cell-
43</tr>
165 <tr><td>cell-
50<td>cell-
51<td>cell-
52<td>cell-
53</tr>
166 <tr><td>cell-
60<td>cell-
61<td>cell-
62<td>cell-
63</tr>
167 <tr><td>cell-
70<td>cell-
71<td>cell-
72<td>cell-
73</tr>
168 <tr><td>cell-
80<td>cell-
81<td>cell-
82<td>cell-
83</tr>
169 <tr><td>cell-
90<td>cell-
91<td>cell-
92<td>cell-
93</tr>
170 <tr><td>cell-a0
<td>cell-a1
<td>cell-a2
<td>cell-a3
</tr>
171 <tr><td>cell-b0
<td>cell-b1
<td>cell-b2
<td>cell-b3
</tr>
172 <tr><td>cell-c0
<td>cell-c1
<td>cell-c2
<td>cell-c3
</tr>
173 <tr><td>cell-d0
<td>cell-d1
<td>cell-d2
<td>cell-d3
</tr>
174 <tr><td>cell-e0
<td>cell-e1
<td>cell-e2
<td>cell-e3
</tr>
175 <tr><td>cell-f0
<td>cell-f1
<td>cell-f2
<td>cell-f3
</tr>
179 <tr><td colspan=
2 style=
"font-size: 8pt; font-weight: bold">FOOTER
182 <CAPTION ALIGN=BOTTOM
>Table
5 has a scrolling tbody.
</CAPTION>
186 This is a table formed from a list with display of table-row and
187 list items with display of table-cell.
188 <UL style=
"display: table-row; background-color:orange;">
189 <LI style=
"display: table-cell; background-color:orange;">ONE
</LI>
190 <LI style=
"display: table-cell; background-color:orange;">TWO
</LI>
191 <LI style=
"display: table-cell; background-color:orange;">THREE
</LI>
192 <LI style=
"display: table-cell; background-color:orange;">FOUR
</LI>
193 <LI style=
"display: table-cell; background-color:orange;">FIVE
</LI>
197 This is a table formed from a list with display of table-row-group and
198 list items with display of table-cell.
200 <UL style=
"display:table-row-group;">
201 <LI style=
"display:table-cell; background-color:orange;">ONE
</LI>
202 <LI style=
"display:table-cell; background-color:orange;">TWO
</LI>
203 <LI style=
"display:table-cell; background-color:orange;">THREE
</LI>
204 <LI style=
"display:table-cell; background-color:orange;">FOUR
</LI>
205 <LI style=
"display:table-cell; background-color:orange;">FIVE
</LI>
206 <LI style=
"display:table-cell; background-color:orange;">SIX
</LI>
210 This is like the previous table plus the list's overflow property set
211 <UL style=
"display:table-row-group; overflow:auto; height: 50px;">
212 <LI style=
"display:table-cell; background-color:orange;">ONE
</LI>
213 <LI style=
"display:table-cell; background-color:orange;">TWO
</LI>
214 <LI style=
"display:table-cell; background-color:orange;">THREE
</LI>
215 <LI style=
"display:table-cell; background-color:orange;">FOUR
</LI>
216 <LI style=
"display:table-cell; background-color:orange;">FIVE
</LI>
217 <LI style=
"display:table-cell; background-color:orange;">SIX
</LI>
220 <P> The following table will have its rows and columns in red collapsed
222 <table border=
1 style=
"background-color:orange;">
223 <caption><b>before
</b></caption>
229 <tr><td>C11
<td style=
"background-color:red;">C12
<td>C13 large
230 <tr style=
"background-color:red;"><td>C21
<td>C22
<td>C23
231 <tr><td>C31
<td style=
"background-color:red;">C32
<td>C33
235 <table border=
1 style=
"background-color:orange;">
236 <caption><b>after
</b></caption>
239 <col style=
"visibility:collapse;">
242 <tr><td>C11
<td>C12
<td>C13 large
243 <tr style=
"visibility:collapse;"><td>C21
<td>C22
<td>C23
244 <tr><td>C31
<td>C32
<td>C33
247 <P> The following table will have its
2nd row and
2nd col collapsed. A window resize may be necessary to see it properly.
249 <table cellspacing=
0 border=
1 style=
"background-color:orange;">
250 <caption><b>before
</b></caption>
257 <tr><td>C11
<td>C12
<td>C13
<td>C14
258 <tr><td>C21
<td rowspan=
2 colspan=
2>C12 C13 C22 C23
<td>C14
260 <tr><td>C41
<td>C42
<td>C43
<td>C44
263 <table cellspacing=
0 border=
1 style=
"background-color:orange;">
264 <caption><b>after
</b></caption>
267 <col style=
"visibility:collapse;">
271 <tr><td>C11
<td>C12
<td>C13
<td>C14
272 <tr style=
"visibility:collapse;"><td>C21
<td rowspan=
2 colspan=
2>C12 C13 C22 C23
<td>C14
274 <tr><td>C41
<td>C42
<td>C43
<td>C44
277 <P> The following table will have its
1st row group collapsed (rows
1 and
2)
279 <table cellspacing=
0 border=
1 style=
"background-color:orange;">
280 <caption><b>before
</b></caption>
281 <tbody style=
"background-color:red;">
282 <tr><td>C11
<td>C12
<td>C13
<td>C14
283 <tr><td>C21
<td>C22
<td>C23
<td>C24
286 <tr><td>C31
<td>C32
<td>C33
<td>C34
287 <tr><td>C41
<td>C42
<td>C43
<td>C44
291 <table cellspacing=
0 border=
1 style=
"background-color:orange;">
292 <caption><b>after
</b></caption>
293 <tbody style=
"visibility:collapse;">
294 <tr><td>C11
<td>C12
<td>C13
<td>C14
295 <tr><td>C21
<td>C22
<td>C23
<td>C24
298 <tr><td>C31
<td>C32
<td>C33
<td>C34
299 <tr><td>C41
<td>C42
<td>C43
<td>C44
303 <P> The following table is similar to a previous table except that the direction is right-to-left.
304 It will have its
2nd row and
2nd col collapsed. A window resize may be necessary to see it properly.
306 <table dir=rtl cellspacing=
0 border=
1 style=
"background-color:orange;">
307 <caption><b>before
</b></caption>
314 <tr><td>C11
<td>C12
<td>C13
<td>C14
315 <tr><td>C21
<td rowspan=
2 colspan=
2>C12 C13 C22 C23
<td>C14
317 <tr><td>C41
<td>C42
<td>C43
<td>C44
320 <table dir=rtl cellspacing=
0 border=
1 style=
"background-color:orange;">
321 <caption><b>after
</b></caption>
324 <col style=
"visibility:collapse;">
328 <tr><td>C11
<td>C12
<td>C13
<td>C14
329 <tr style=
"visibility:collapse;"><td>C21
<td rowspan=
2 colspan=
2>C12 C13 C22 C23
<td>C14
331 <tr><td>C41
<td>C42
<td>C43
<td>C44