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: Fixed table width is maximum between table and sum of column 'width' (sum of columns' widths wins)</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#fixed-table-layout">
7 <meta name="flags" content="">
8 <meta name="assert" content="A fixed layout table's width will be the sum of its columns' widths if that number is greater than the table's specified width.">
9 <style type="text/css">
10 table
11 {
12 border-spacing: 0;
13 table-layout: fixed;
14 width: 75px;
15 }
16 td
17 {
18 background: black;
19 padding: 0;
20 width: 25px;
21 }
22 #div1
23 {
24 background: blue;
25 width: 100px;
26 }
27 #div1, td
28 {
29 height: 1em;
30 }
31 </style>
32 </head>
33 <body>
34 <p>Test passes if the boxes below are the same width.</p>
35 <table>
36 <tr>
37 <td></td>
38 <td></td>
39 <td></td>
40 <td></td>
41 </tr>
42 </table>
43 <div id="div1"></div>
44 </body>
45 </html>