html - How to create a table with two columns, the first one's width is Auto and the second one is 100% -


in table:

how set width columns implement following:

two columns, width of first 1 fit maximum width of content. , width of second 1 rest of table's width.

<style type="text/css">     table,      td.col2 {width:100%}     td.col1 {white-space:nowrap;} </style>  <table>     <tr>         <td class="col1">column 1 content here</td>         <td class="col2">column 2 content here</td>     </tr> </table> 

Comments