We're using the CSS table-layout: fixed
property for our mobile app. (I don't recall the full reason, but I believe it had to do with enabling word wrapping of some sorts)...
I've run into an issue where we need to size one of the two columns of the two column table. Not a big deal, usually we do this:
<table>
<tbody>
<tr>
<th width="20%">hello world</th>
<td>hello world</td>
</tr>
</tbody>
</table>
That works fine.
However, if we need to create a row that spans both columns BEFORE this one:
<table>
<tbody>
<tr>
<td colspan="2">hello world</th>
</tr>
<tr>
<th width="20%">hello world</th>
<td>hello world</td>
</tr>
</tbody>
</table>
What happens, at least in Chrome, is that the two columns snap to 50% widths. I have a jsbin sample here:
Is this normal behavior? A Chrome bug? A way to work around this issue?