Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

outlining a table, why are the % -es not being followed

Status
Not open for further replies.

Mariootje

Programmer
Aug 10, 2001
33
NL
Hello,

At the moment I am outlining a form built with a table. To make the <tr> able to have a different number of <td> I tried to work with a 'table in a table' and for the first layer this works, now I am trying this trick (a table in a table in a table) again and it doen not work (though I think this second 'table in a table' is not necessary).

part of the code which is outlined perfect:

<tr>
<td width=&quot;20%&quot; align=&quot;right&quot; valign=&quot;top&quot;>Vindplaats Bijvoegsel</td>
<td width=&quot;3%&quot; align=&quot;right&quot;> </td>
<td><table width=&quot;100%&quot; border=&quot;1&quot;><tr>
<td width=&quot;30%&quot; valign=&quot;top&quot;><input type=&quot;text&quot; name=&quot;schut_txtVindplAdvies&quot; value=&quot;<%=schut_objRs.fields(&quot;vpadvies&quot;)%>&quot; size=&quot;10&quot;></td>
<td width=&quot;37%&quot; align=&quot;right&quot;>Datum/Nr. Staatsblad iwtr</td>
<td width=&quot;3%&quot;> </td>
<td width=&quot;15%&quot;><input type=&quot;text&quot; name=&quot;datDatumStaatblIwtr&quot; value=&quot;<%=schut_objRs.fields(&quot;datstaatsbliwtr&quot;)%>&quot; size=&quot;11&quot;></td>
<td width=&quot;15%&quot;><input type=&quot;text&quot; name=&quot;intNrStaatsblIwtr&quot; value=&quot;<%=schut_objRs.fields(&quot;nrstaatsbliwtr&quot;)%>&quot; size=&quot;5&quot;></td>
</tr></table></td>
</tr>

the following part of html stands under this code and this part is not shown the way I want:

<tr>
<td width=&quot;20%&quot; align=&quot;right&quot; valign=&quot;top&quot;>Vindplaats kamerstuk</td>
<td width=&quot;3%&quot; align=&quot;right&quot;> </td>
<td><table width=&quot;100%&quot; border=&quot;1&quot;><tr>
<td width=&quot;30%&quot; valign=&quot;top&quot;><input type=&quot;text&quot; name=&quot;schut_txtVindplStuk&quot; value=&quot;<%=schut_objRs.fields(&quot;vpgedrstuk&quot;)%>&quot; size=&quot;20&quot;></td>
<td width=&quot;37%&quot; align=&quot;right&quot;>Tractatenblad</td>
<td width=&quot;3%&quot;> </td>
<td width=&quot;30%&quot;><input type=&quot;text&quot; name=&quot;schut_txtTractBlad&quot; value=&quot;<%=schut_objRs.fields(&quot;tractatenbl&quot;)%>&quot; size=&quot;16&quot;></td>
</tr></table></td>
</tr>

The frustrating part is that it just seems that the second tr is shown at a kind of randomnes.

Thanks, Mariootje
 
What versions of browsers are you designing for?
in the w3c standard, % are no longer used in tr or TD designations (over all table width still use %), and newer browers observe the pixel size instead of % for the tR and TD tags.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top