You can't. You'll need to use fixed widths, but that really isn't a huge deal. I'll assume a few things, but this code should at least give you the general idea:
HTML Code:
<form class="equalTables">
<table>
<tr>
<td class="label"></td>
<td><!-- form field --></td>
</tr>
</table>
</form>
<form class="equalTables">
<table>
<tr>
<td class="label"></td>
<td><!-- form field --></td>
</tr>
</table>
</form>
And the CSS:
Code:
.equalTables td.label {
width: 100px;
}
The width you'll have to play around with to see what works best for this page. You miiiiiiight be able to give each FORM and form field an Id and then use the document.getElementById() function to access those tags, but I'm not sure. The easiest way in the long run is to start with valid markup, so I suggest the CSS method.
Bookmarks