How can I dictate column width in an HTML table?

I know how to define table width, but the individual columns are defined by content -- columns with more in them are wider. But I want them to all be a uniform width. How do I dictate this?

Public Comments

  1. <td width=""
  2. Lets say you have a table that is 600 pixels wide. And you want 2 columns The Code would be: <table width="600"> <tr> <td width="300">Column 1</td> <td width="300">Column 2</td> </tr> </table> You simply divide the total width of your table by the number of columns to get the static width. You could also use percentages/dynamic width <table width="600"> <tr> <td width="50%">Column 1</td> <td width="50%">Column 2</td> </tr> </table>
  3. use css.. table td { width:300px; }
Powered by Yahoo! Answers