How to make an HTML table column as dense as possible? (Or grow as much as possible?)

I have a table like this:

<table border=1 style="width: 100%">
 <tbody>
    <tr>
      <td>
        squish this one
      </td>
      <td>
        expand this one
      </td>
    </tr>
  </tbody>
</table>

I would like the left column to be as narrow as possible and the right column to occupy the rest of the screen. Is it possible?

+5
source share
3 answers
<table border=1 style="width: 100%">
<tbody>
    <tr>
      <td width="1">
        squish this one
      </td>
      <td width="*">
        expand this one
      </td>
    </tr>
  </tbody>
</table>
+3
source

Give the second column style="width:100%".

+1
source

" " - . width = 0 1px. - ?

0

All Articles