5 background-color: cyan;
9 background-color: yellow;
13 background-color: lime;
17 background-color: pink;
25 -webkit-writing-mode: vertical-rl;
30 function dumpHeights(table)
32 var cell1 = document.getElementById(table + "-one");
33 var cell2 = document.getElementById(table + "-two");
34 document.write("<p>");
35 document.write("The table height is: " + document.getElementById(table).offsetHeight + "<br>");
36 document.write("Column One is: " + Math.round(100*cell1.offsetHeight/(cell1.offsetHeight+cell2.offsetHeight)) + "%");
37 document.write("<br>");
38 document.write("Column Two is: " + Math.round(100*cell2.offsetHeight/(cell1.offsetHeight+cell2.offsetHeight)) + "%");
39 document.write("</p><hr>");
44 <h1>Fixed Columns, Auto Span, Minheight Table</h1>
46 <table height="1" id="one" cellpadding=0 cellspacing=0>
48 <td height=100 id="one-one" class="one">
49 <td height=200 id="one-two" class="two">
52 <td colspan=2 class="span">
53 <div style="height:100px"></div>
62 <table height="1" id="two" cellpadding=0 cellspacing=0>
64 <td height=100 id="two-one" class="one">
65 <td height=200 id="two-two" class="two">
68 <td colspan=2 class="span">
69 <div style="height:600px"></div>
78 <table height="1" id="three" cellpadding=0 cellspacing=0>
80 <td height=100 id="three-one" class="one">Fixed cell in column one with some text.
81 <td height=200 id="three-two" class="two">Fixed cell in column two with a lot more text. Will the ratios be preserved?
84 <td colspan=2 class="span">
85 <div style="height:600px"></div>
94 <table height="1" id="four" cellpadding=0 cellspacing=0>
96 <td height=50 id="four-one" class="one"><div style="height:100px"></div>
97 <td height=100 id="four-two" class="two"><div style="height:250px"></div>
100 <td colspan=2 class="span">
101 <div style="height:600px"></div>