I've got a simple problem but I can't find the solution. I hope someone can help me (I was surprised I couldnt find it in previous posts on this forum...)
What I want is:
a table (width 100%) with 3 columns, two with a fixed width (e.g. 50 and 40px), one with a variable width (which 'fills the gap' up to the 100% table width)
What I try is:
What I happens is:
the third column squeezes the other two to a width smaller than 50 and 40 px respectively. I get something like:
What I want is:
a table (width 100%) with 3 columns, two with a fixed width (e.g. 50 and 40px), one with a variable width (which 'fills the gap' up to the 100% table width)
Code:
+---------+----------+---------------------+
|Column 1 | Column 2 | Column 3 |
+---------+----------+---------------------+
What I try is:
Code:
<table style="width:100%">
<tr>
<td style="width:50px">Column 1</td>
<td style="width:40px">Column 2/td>
<td style="width:100%">Column 3/td>
</tr>
</table>
What I happens is:
the third column squeezes the other two to a width smaller than 50 and 40 px respectively. I get something like:
Code:
+---------------------------------------+
|Column|Column| Column 3 |
|1 |2 | |
+------+------+-------------------------+