html - Table column resize -


i have such table structure(i can replace div if possible solve problem suing them) , set width of left column fixed size in pixels, example 300px , make right column auto width keep resized left column border of browser. solution not work in situation.

 <table>    <tr>         <td width="300">              fixed size         </td>    </tr>    <tr>         <td width="100%">               take free space         </td>    </tr>  </table> 

using/suing divs:

<div style="background-color: lime; float: left; width: 300px;">fixed size</div> <div style="background-color: cyan; margin-left: 300px;">take free space</div> 

demo here


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -