Tables - HTML - ASP.NET - how do you stop table rows from expanding to fit the contents?

Using the new form view data bound control and put the individual fields into a table to better handle the look...however the table rows keep expanding and moving around on me... HUH? You say don't use tables??? what the heck are you talking about - this is standard I thought for web applications....

Public Comments

  1. stop using tables n00b http://alistapart.com/
  2. Enter fix width values on the cells. <td width=17></td> This will keep the cell width constant. jainnys Mind Experts Inc. http://www.mindexp.com
  3. Sometimes width attribute does not work properly due to the contents of some other cell in the same row or column. So, try including the <td> alone within a <table> with width atrtribute to <table> tag
  4. this is the right answer. do it this way. <table> <tr> <td> <div style="width="250px; height:250px; overflow:auto;">your content goes here and will make a scrollbar when the content gets larger than the table cell</div> </td> </tr> </table>
  5. you could consider using a datagrid
Powered by Yahoo! Answers