AndreasW: Tabelle formatieren

Beitrag lesen

Hallo,

Tach

Ich werte ein Formular aus und will die Auswertung dann so:

<table border="1" cellspacing="1" width="100%">
          <tr>
            <td width="100%" valign="middle"><script>
         <!--
         for(var i=0;i<formular.length;i++)
         {
              document.write("<tr><td class=GeraetBes >" + formular[i] + "<br></td>");
              document.write("<td class=GeraetBes >" + formular[++i] + "     <br></td></tr>");

}
        //-->
         </script></td>
          </tr>
        </table>

Du schreibst eine Tabellenzeile in die Tabellenzelle.
Das ist in HTML nicht zulässig.

Um Spaltenbreiten festzulegen, gibt es colgroup und col.

Andreas