7 .percent { width:
50%; }
8 .fixed { width:
400px; }
9 .cell1 { height:
25px; background-color: aqua }
10 .border { border:
2px solid green }
11 .padding { padding:
2px }
12 .margin { margin:
2px }
13 .pre { white-space: pre }
14 table { border:
2px solid black }
16 <body leftmargin=
"0" topmargin=
"0">
21 <td class=
"cell1">First cell empty, second auto width
</td>
30 <td class=
"cell1 percent">First cell empty, second percent width
</td>
39 <td class=
"cell1 fixed">First cell empty, second fixed width
</td>
47 <td class=
"pre"> </td>
48 <td class=
"cell1 percent">First cell empty (with space) and has white-space:pre
</td>
57 <td class=
"cell1 percent">First cell empty (no space) and has white-space:pre
</td>
62 <table id=c
width=
"100%">
65 <td class=
"border"> </td>
66 <td class=
"cell1 percent">First cell empty but has border
</td>
71 <table id=c
width=
"100%">
74 <td class=
"padding"> </td>
75 <td class=
"cell1 percent">First cell empty but has padding
</td>
80 <table id=c
cellpadding=
"1" width=
"100%">
84 <td class=
"cell1 percent">First cell empty, table has cellpadding
</td>
89 <table id=c
cellspacing=
"1" width=
"100%">
93 <td class=
"cell1 percent">First cell empty, table has cellspacing
</td>
98 <table id=c
width=
"100%">
101 <td class=
"margin"> </td>
102 <td class=
"cell1 percent">First cell empty but has margin
</td>
107 <table id=e
width=
"100%">
110 <td class=
"bgcolor"> </td>
111 <td class=
"cell1 percent">First cell empty but has background color
</td>
120 <td class=
"cell1 percent">First row, first cell empty
</td>
124 <td class=
"cell1 percent">Second row, first cell not empty
</td>
133 <td class=
"cell1 percent">First row, first cell empty
</td>
137 <td class=
"cell1 percent">Second row, first cell empty
</td>
145 <td colspan=
"2"> </td>
146 <td class=
"cell1 percent">First cell empty, has colspan
</td>
155 <td class=
"cell1"> text
</td>
156 <td class=
"cell1 percent">First row, first cell empty, second cell non-empty
</td>
159 <td colspan=
"2"> </td>
160 <td class=
"cell1">Second row, first cell empty with colspan=
2</td>
168 <td class=
"cell1"> text
</td>
170 <td class=
"cell1 percent">First row, first cell non-empty, second cell empty
</td>
173 <td colspan=
"2"> </td>
174 <td class=
"cell1">Second row, first cell empty with colspan=
2</td>
184 <td class=
"cell1 percent">First row, first and second cell empty
</td>
187 <td colspan=
"2"> </td>
188 <td class=
"cell1 percent">Second row, first cell empty, has colspan=
2</td>
198 <td class=
"cell1 percent">First row, first and second cell empty
</td>
201 <td class=
"percent" colspan=
"2"> </td>
202 <td class=
"cell1 percent">Second row, first cell empty, has colspan=
2 and percent width
</td>
212 <td class=
"cell1 percent">First row, first and second cell empty
</td>
215 <td class=
"fixed" colspan=
"2"> </td>
216 <td class=
"cell1 percent">Second row, first cell empty, has colspan=
2 and fixed width
</td>