Hallo Lude,
Wie schaffe ich es in eine Tabelle n "forms" zu setzen und die Breite der Felder gleich zu halten?
In diesem Fall solltest Du vielleicht mal doch mit dem Gedanken spielen, mehrere Tabellen zu verwenden:
<html>
<body>
<table>
<colgroup>
<col width="...">
<col width="...">
...
</colgroup>
<thead>
<tr>
<th>N</th>
<th>Bezeichnung_Name</th>
<th>Ort_Name</th>
<th>Kategorie_Name</th>
<th>Sum</th>
<th>W</th>
<th>Count</th>
<th>Min</th>
<th>Max</th>
<th>A</th>
<th colspan="2">Aktion</th>
</tr>
</thead>
</table>
<form action="rr-biz.pl">
<table>
<colgroup>
<col width="...">
<col width="...">
...
</colgroup>
<tr>
<td><input name="N" type="text" class="ganzflaechig"></input></td>
<td><input name="Bezeichnung_Name" type="text" class="ganzflaechig"></input></td>
<td><input name="Ort_Name" type="text" class="ganzflaechig"></input></td>
<td><input name="Kategorie_Name" type="text" class="ganzflaechig"></input></td>
<td><input name="Sum" type="text" class="ganzflaechig"></input></td>
<td><input name="W" type="text" class="ganzflaechig"></input></td>
<td><input name="Count" type="text" class="ganzflaechig"></input></td>
<td><input name="Min" type="text" class="ganzflaechig"></input></td>
<td><input name="Max" type="text" class="ganzflaechig"></input></td>
<td><input name="A" type="text" class="ganzflaechig"></input></td>
<td colspan="2"><input type="submit" class="ganzflaechig" value="Filtern!"></input></td>
<td><input name="Session_GUID" type="hidden" value="8C322173-CD29-4778-9843-D604097B2277"></input></td>
<td><input name="Sortierung" type="hidden" value="Count"></input></td>
<td><input name="Query" type="hidden" value="BIZ_FAVORITEN"></input></td>
<td><input name="WhatToDo" type="hidden" value="FilterQuery"></input></td>
</tr>
</table>
</form>
<table>
<colgroup>
<col width="...">
<col width="...">
...
</colgroup>
<tr>
<td>1</td>
<td>Treff - Discount</td>
<td>#</td>
<td>TREFF - KONSUM</td>
<td>4524.14</td>
<td>EUR</td>
<td>663</td>
<td>1999-11-20 13:50:19.000</td>
<td>2003-03-25 09:58:47.483</td>
<td>***</td>
<td colspan="2"><input type="button" class="ganzflaechig" value="Yo!"></input></td>
</tr>
<tr>
<td>2</td>
<td>Peter's</td>
<td>Baden-Baden</td>
<td>PETERS - KONSUM</td>
<td>1079.70</td>
<td>EUR</td>
<td>592</td>
<td>1999-01-04 00:00:00.000</td>
<td>2003-03-25 09:56:34.967</td>
<td>***</td>
<td colspan="2"><input type="button" class="ganzflaechig" value="Yo!"></input></td>
</tr>
</table></body></html>
Ist zwar nicht die sauberste Lösung, aber *anscheinend* die einzig brauchbare verglichen mit invalidem HTML. Wichtig sind hierbei die <colgroup>/<col>-Abschnitte, die die Breiten der Spalten festlegen. Du kannst auch statt
<col width="...">
lieber
<col class="spalteX">
verwenden und dann in CSS mit
.spalteX { width: 122px; }
die Breite definieren. (Klappt zumindest im Mozilla bei mir, andere Browser müßtest Du testen)
Dann musst Du die Angaben nicht an zwanzig Stellen verändern, wenn Du die Breite einer Spalte verändern willst.
Hoffentlich habe ich Dein Problem richtig erkannt und konnte Dir weiterhelfen.
Viele Grüße,
Christian
Hast Du einen Beitrag? Nur her damit!
http://aktuell.de.selfhtml.org/tippstricks/beitrag.htm
SELF-Code: (http://emmanuel.dammerer.at/selfcode.html)
sh:) fo:) ch:] rl:( br:> n4:& ie:% mo:) va:) de:] zu:) fl:( js:| ss:) ls:[