Hey,
I have a table defined like

<table width="100%">
  <tr>
    <td>Some Content</td>
    <td>More Content</td>
  </tr>
</table>

This table displays something like

|------------------------|------------------------|
|Some Content            | More Content           |
|------------------------|------------------------|

The columns of the table will automatically resize based on there content however I want the first collumn to only be the width of its content however much content is in the first or second column I.E.

|------------|-------------------------------------|
|Some Content|              More Content           |
|------------|-------------------------------------|
|------------|-------------------------------------|
|Some Content|              a                      |
|------------|-------------------------------------|

How is this done?
Regards,
Sam Rudge

Recommended Answers

All 3 Replies

Thanks for share coding of a table.

<table width="100%">
<tr>
<td>Content</td>
<td width='*'>More Content</td>
</tr>
</table>
commented: Usefull stuff =) +2
<table width="100%">
<tr>
<td>Content</td>
<td width='*'>More Content</td>
</tr>
</table>

Brilliant - why didn't I think of that =)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.