blob: 8ab69ad821b8af2ec088d1cb7dd2f35eac6aaf20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">
<head>
<title>table-layout: fixed width distribution with unassigned space</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css">
table, td { margin: 0; padding: 0; }
table {
table-layout: fixed;
width: 600px;
border-spacing: 0;
margin-bottom: 2px;
}
td { color: black; background: yellow; }
td + td { background: aqua; }
td + td + td { background: fuchsia; }
</style>
</head>
<body>
<table>
<tr>
<td style="width: 100px">100px</td>
</tr>
</table>
<table>
<tr>
<td style="width: 700px">700px</td>
</tr>
</table>
<table>
<tr>
<td style="width: 600px">600px</td>
</tr>
</table>
<table>
<tr>
<td style="width: 100px">100px</td>
<td style="width: 200px">200px</td>
</tr>
</table>
<table>
<tr>
<td style="width: 150px">150px</td>
<td style="width: 300px">300px</td>
</tr>
</table>
<table>
<tr>
<td style="width: 20%">20%</td>
</tr>
</table>
<table>
<tr>
<td style="width: 100%">100%</td>
</tr>
</table>
<table>
<tr>
<td style="width: 120%">120%</td>
</tr>
</table>
<table>
<tr>
<td style="width: 20%">20%</td>
<td style="width: 40%">40%</td>
</tr>
</table>
<table>
<tr>
<td style="width: 30%">30%</td>
<td style="width: 60%">60%</td>
</tr>
</table>
<table>
<tr>
<td style="width: 20%">20%</td>
<td style="width: 100px">100px</td>
</tr>
</table>
<table>
<tr>
<td style="width: 20%">20%</td>
<td style="width: 100px">100px</td>
<td><div style="width: 100px">div</div></td>
</tr>
</table>
<table>
<tr>
<td style="width: 20%">20%</td>
<td style="width: 0">0</td>
</tr>
</table>
<table>
<tr>
<td style="width: 20%">20%</td>
<td style="width: 0%">0%</td>
</tr>
</table>
<table>
<tr>
<td style="width: 100px">100px</td>
<td style="width: 0">0</td>
</tr>
</table>
<table>
<tr>
<td style="width: 100px">100px</td>
<td style="width: 0%">0%</td>
</tr>
</table>
<table>
<tr>
<td style="width: 0">0</td>
<td style="width: 0">0</td>
</tr>
</table>
<table>
<tr>
<td style="width: 0%">0%</td>
<td style="width: 0">0</td>
</tr>
</table>
</body>
</html>
|