2 <style type=
"text/css">
4 .percent { width:50%; }
5 .fixed { width:400px; }
6 .cell2 {height:25px; background-color: red
}
7 .border { border: 2px solid green
}
8 .padding { padding: 2px }
9 .margin { margin: 2px }
10 .bgcolor { background-color: yellow
}
11 .pre { white-space: pre
}
12 table
{ border: 2px solid black
}
15 <body leftmargin=
"0" topmargin=
"0">
18 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
21 <td class=
"cell1"> </td>
22 <td class=
"cell2">First cell empty, second auto width
</td>
27 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
30 <td class=
"cell1"> </td>
31 <td class=
"cell2 percent">First cell empty, second percent width
</td>
36 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
39 <td class=
"cell1"> </td>
40 <td class=
"cell2 fixed">First cell empty, second fixed width
</td>
45 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
48 <td class=
"cell1 pre"> </td>
49 <td class=
"cell2 percent">First cell empty (with space) and has white-space:pre
</td>
54 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
57 <td class=
"cell1 pre"></td>
58 <td class=
"cell2 percent">First cell empty (no space) and has white-space:pre
</td>
63 <table id=c
cellpadding=
"0" cellspacing=
"0" width=
"100%">
66 <td class=
"cell1 border"> </td>
67 <td class=
"cell2 percent">First cell empty but has border
</td>
72 <table id=c
cellpadding=
"0" cellspacing=
"0" width=
"100%">
75 <td class=
"cell1 padding"> </td>
76 <td class=
"cell2 percent">First cell empty but has padding
</td>
81 <table id=c
cellpadding=
"1" cellspacing=
"0" width=
"100%">
84 <td class=
"cell1"> </td>
85 <td class=
"cell2 percent">First cell empty, table has cellpadding
</td>
90 <table id=c
cellpadding=
"0" cellspacing=
"1" width=
"100%">
93 <td class=
"cell1"> </td>
94 <td class=
"cell2 percent">First cell empty, table has cellspacing
</td>
99 <table id=c
cellpadding=
"0" cellspacing=
"0" width=
"100%">
102 <td class=
"cell1 margin"> </td>
103 <td class=
"cell2 percent">First cell empty but has margin
</td>
108 <table id=e
cellpadding=
"0" cellspacing=
"0" width=
"100%">
111 <td class=
"cell1 bgcolor"> </td>
112 <td class=
"cell2 percent">First cell empty but has background color
</td>
117 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
120 <td class=
"cell1"> </td>
121 <td class=
"cell2 percent">First row, first cell empty
</td>
124 <td class=
"cell1"> text
</td>
125 <td class=
"cell2 percent">Second row, first cell not empty
</td>
130 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
133 <td class=
"cell1"> </td>
134 <td class=
"cell2 percent">First row, first cell empty
</td>
137 <td class=
"cell1"> </td>
138 <td class=
"cell2 percent">Second row, first cell empty
</td>
143 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
146 <td class=
"cell1" colspan=
"2"> </td>
147 <td class=
"cell2 percent">First cell empty, has colspan
</td>
152 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
155 <td class=
"cell1"> </td>
156 <td class=
"cell2"> text
</td>
157 <td class=
"cell2 percent">First row, first cell empty, second cell non-empty
</td>
160 <td class=
"cell1" colspan=
"2"> </td>
161 <td class=
"cell2">Second row, first cell empty with colspan=
2</td>
166 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
169 <td class=
"cell2"> text
</td>
170 <td class=
"cell1"> </td>
171 <td class=
"cell2 percent">First row, first cell non-empty, second cell empty
</td>
174 <td class=
"cell1" colspan=
"2"> </td>
175 <td class=
"cell2">Second row, first cell empty with colspan=
2</td>
180 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
183 <td class=
"cell1"> </td>
184 <td class=
"cell1"> </td>
185 <td class=
"cell2 percent">First row, first and second cell empty
</td>
188 <td class=
"cell1" colspan=
"2"> </td>
189 <td class=
"cell2 percent">Second row, first cell empty, has colspan=
2</td>
194 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
197 <td class=
"cell1"> </td>
198 <td class=
"cell1"> </td>
199 <td class=
"cell2 percent">First row, first and second cell empty
</td>
202 <td class=
"cell1 percent" colspan=
"2"> </td>
203 <td class=
"cell2 percent">Second row, first cell empty, has colspan=
2 and percent width
</td>
208 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
211 <td class=
"cell1"> </td>
212 <td class=
"cell1"> </td>
213 <td class=
"cell2 percent">First row, first and second cell empty
</td>
216 <td class=
"cell1 fixed" colspan=
"2"> </td>
217 <td class=
"cell2 percent">Second row, first cell empty, has colspan=
2 and fixed width
</td>
223 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
232 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">