[Home]Minimum width for cells

HomePage | RecentChanges | Preferences | Newbie Help

HTML Tables

The way to do this is is to not specify the width in the <table> tag but in a <td> tag. This way the table will shrink if needed but never get wider than the specified width of the <td>. If you also want to set a "minimum" width then a transparent .gif ( or if space allows, another fixed width table) could be used to in a cell to set the minimum desired width.


  <tr><td width="600" bgcolor="#ccccff">
     This table should have a maximun width
     of about 600 and a minimum width of 300
     <table border="0" width="300">
       <tr><td> </td></tr>
Richard has some info about this at: http://www.users.bigpond.net.au/rf/tricks/fixedmenu.htm


HomePage | RecentChanges | Preferences | Newbie Help
This page is read-only | View other revisions
Last edited October 4, 2002 8:39 pm (diff)

This FAQ is happily hosted by Betadome Digital Media