We use the CSS table-layout: fixed
property for our mobile application. (I donβt remember the whole reason, but I believe that this is due to the possibility of transferring some words) ...
I ran into a problem when we need to define one of two columns from two columns of a table. It doesn't matter, usually we do this:
<table> <tbody> <tr> <th width="20%">hello world</th> <td>hello world</td> </tr> </tbody> </table>
It works great.
However, if we need to create a row that spans both columns before this:
<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 two columns are tied to 50% of the width. Here I have a jsbin example:
http://jsbin.com/ejovut/3
Is this normal behavior? Chrome error? A way around this problem?
source share