fixed-table-layout-005-vrl.html (1653B)
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: Leftover table height is divided evenly among auto-sized columns</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/"> 6 <link rel="author" title="Adapted for vertical layout by Simon Montagu" href="http:/mozilla.org/"> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#fixed-table-layout"> 8 <meta name="flags" content=""> 9 <meta name="assert" content="Any remaining vertical table space is divided evenly among columns which do not have specified heights."> 10 <style type="text/css"> 11 div.test { writing-mode: vertical-rl; } 12 table 13 { 14 border-spacing: 0; 15 table-layout: fixed; 16 height: 300px; 17 } 18 #col1 19 { 20 height: 50px; 21 } 22 td 23 { 24 padding: 0; 25 } 26 #cell1 27 { 28 height: 50px; 29 } 30 #cell2 31 { 32 height: 100px; 33 } 34 </style> 35 </head> 36 <body> 37 <div class="test"> 38 <table> 39 <col id="col1"> 40 <col> 41 <col> 42 <col> 43 <col> 44 <col> 45 <tr> 46 <td>1</td> 47 <td id="cell1">2</td> 48 <td id="cell2" colspan="2">3</td> 49 <td>4</td> 50 <td>5</td> 51 </tr> 52 </table> 53 </div> 54 </body> 55 </html>