GuyB7 GuyB7 - 1 year ago 79
CSS Question

TD width - the minimum needed using CSS

Consider this table:

<table style="width: 100%">
<td>Static length</td>
<td>Static length</td>
<td><div>Length varies</div></td>
<td>Space filler</td>

How can I make the 3rd column to take the minimum width (depending on its content) and the 4th column to take the rest?

Answer Source

Use this

    width: 1px;
    white-space: nowrap;


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download