<p>I need to layout a html datatable with CSS. </p>

<p>The actual content of the table can differ, but there is always one main column and 2 or more other columns. I'd like to make the main column take up as MUCH width as possible, regardless of its contents, while the other columns take up as little width as possible. I can't specify exact widths for any of the columns because their contents can change.</p>

<p>How can I do this using a simple semantically valid html table and css only?</p>

<p>For example:</p>

<pre>
| Main column                           | Col 2 | Column 3 |
 &lt;------------------ fixed width in px -------------------&gt;
 &lt;------- as wide as possible ---------&gt;
 Thin as possible depending on contents: &lt;-----&gt; &lt;--------&gt; 
</pre>

I'm far from being a CSS expert but this works for me (in IE, FF, Safari and Chrome):
```
```
td.zero_width {
    width: 1%;
}
```
```
Then in your HTML:
```
```
<td class="zero_width">...</td>
```
```