1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Table organization (columns in column groups)</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#tables-intro">
7 <meta name="flags" content="">
8 <meta name="assert" content="Table columns can be grouped into table column groups.">
9 <style type="text/css">
10 table
11 {
12 border: 1px solid black;
13 }
14 #cg1
15 {
16 background: blue;
17 }
18 #cg2
19 {
20 background: purple;
21 }
22 td
23 {
24 height: 2em;
25 width: 2em;
26 }
27 </style>
28 </head>
29 <body>
30 <p>Test passes if the table below has two blue columns on the left and two purple columns on the right.</p>
31 <table>
32 <colgroup id="cg1">
33 <col>
34 <col>
35 </colgroup>
36 <colgroup id="cg2">
37 <col>
38 <col>
39 </colgroup>
40 <tr>
41 <td></td>
42 <td></td>
43 <td></td>
44 <td></td>
45 </tr>
46 <tr>
47 <td></td>
48 <td></td>
49 <td></td>
50 <td></td>
51 </tr>
52 <tr>
53 <td></td>
54 <td></td>
55 <td></td>
56 <td></td>
57 </tr>
58 <tr>
59 <td></td>
60 <td></td>
61 <td></td>
62 <td></td>
63 </tr>
64 </table>
65 </body>
66 </html>