[HTML] Tabelle zentrieren

Jessie
Hallo smile
ich versuch schon die ganze Zeit diese Tabelle mittig zu bekommen, doch irgendwie gehts nie unglücklich
Der Code:
php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:

<?php
   include('db.php'); ?>
<html>

<head>
<meta http-equiv="Content-Language" content="de">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Kaufhaus</title>

</head>

<body>

<p class="head">Kaufhaus</p>

<p >Hier im Kaufhaus kannst du Sachen f&#65533;r dein Pferd kaufen. Bitte 
achte darauf das du nur so viel Geld ausgibst wie du auch besitzt!</p>

<p><b>S&#65533;ttel</b></p>

<p align="center">

<?



   $sql = "SELECT name, beschreibung, farbe, preis, id FROM Shop_Sattel";
   $result = mysql_query($sql);

   while ($row = mysql_fetch_assoc($result)) {
      echo "
<center>
<table border="0" cellpadding="0" align="center" cellspacing="0" "border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" align="center">
  <tr>
    <td width="10%">$row[id]</td>
    <td width="20%">$row[name]</td>
    <td width="20%">$row[farbe]</td>
    <td width="20%">$row[preis]&#65533;</td>
     <td width="20%"></td>

  </tr>
</table><br></center>
";
   }
   ?>

</p>
<p><b>Sattelzubeh&#65533;r</b></p>

<p align="center">

<?



   $sql = "SELECT name, beschreibung, farbe, preis, id FROM Shop_Decken";
   $result = mysql_query($sql);

   while ($row = mysql_fetch_assoc($result)) {
      echo "

<table border="0" cellpadding="0" align="center" cellspacing="0" "border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
  <tr>
    <td width="10%">$row[id]</td>
    <td width="20%">$row[name]</td>
    <td width="20%">$row[farbe]</td>
    <td width="20%">$row[preis]&#65533;</td>
     <td width="20%"></td>

  </tr>
</table><br>
";
   }
   ?>

</p>

<p><b>Trensen & Zubeh&#65533;r</b></p>
<?



   $sql = "SELECT name, beschreibung, farbe, preis, id FROM Shop_Trense";
   $result = mysql_query($sql);

   while ($row = mysql_fetch_assoc($result)) {
      echo "
<table border="0" cellpadding="0" cellspacing="0" "border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
  <tr>
    <td width="10%">$row[id]</td>
    <td width="20%">$row[name]</td>
    <td width="20%">$row[farbe]</td>
    <td width="20%">$row[preis]&#65533;</td>
     <td width="20%"></td>

  </tr>
</table><br>
";
   }
   ?>
<p><b>Halfter&Stricke</b></p>
<p align="center">

<?



   $sql = "SELECT name, beschreibung, farbe, preis, id FROM Shop_Halfter";
   $result = mysql_query($sql);

   while ($row = mysql_fetch_assoc($result)) {
      echo "

<table border="0" cellpadding="0" align="center" cellspacing="0" "border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
  <tr>
    <td width="10%">$row[id]</td>
    <td width="20%">$row[name]</td>
    <td width="20%">$row[farbe]</td>
    <td width="20%">$row[preis]&#65533;</td>
     <td width="20%"></td>

  </tr>
</table><br>
";
   }
   ?>
<p><b>Pflege</b></p>
<p align="center">

<?



   $sql = "SELECT name, beschreibung, farbe, preis, id FROM Shop_Putzen";
   $result = mysql_query($sql);

   while ($row = mysql_fetch_assoc($result)) {
      echo "

<table border="0" cellpadding="0" align="center" cellspacing="0" "border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
  <tr>
    <td width="10%">$row[id]</td>
    <td width="20%">$row[name]</td>
    <td width="20%">$row[farbe]</td>
    <td width="20%">$row[preis]&#65533;</td>
     <td width="20%"></td>

  </tr>
</table><br>
";
   }
   ?>
<p><b>Sonstiges</b></p>
<p align="center">

<?



   $sql = "SELECT name, beschreibung, farbe, preis, id FROM Shop_Sonstiges";
   $result = mysql_query($sql);

   while ($row = mysql_fetch_assoc($result)) {
      echo "

<table border="0" cellpadding="0" align="center" cellspacing="0" "border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
  <tr>
    <td width="10%">$row[id]</td>
    <td width="20%">$row[name]</td>
    <td width="20%">$row[farbe]</td>
    <td width="20%">$row[preis]&#65533;</td>
     <td width="20%"></td>

  </tr>
</table><br>
";
   }
   ?>
<p><b>Westernzubeh&#65533;r</b></p>
<p align="center">

<?



   $sql = "SELECT name, beschreibung, farbe, preis, id FROM Shop_Western";
   $result = mysql_query($sql);

   while ($row = mysql_fetch_assoc($result)) {
      echo "

<table border="0" cellpadding="0" align="center" cellspacing="0" "border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
  <tr>
    <td width="10%">$row[id]</td>
    <td width="20%">$row[name]</td>
    <td width="20%">$row[farbe]</td>
    <td width="20%">$row[preis]&#65533;</td>
     <td width="20%"></td>

  </tr>
</table><br>
";
   }
   ?>

</p>
<p>Hier kannst du deine Bestellung abgeben. Bitte gib immer die Kategorie, 
die ID, sowie Farbe und Preis an! Dann rechne bitte den Betrag zusammen. Falls du einen Gegenstand im Shop vermisst, schreib ihn 
einfach dazu und wir nehmen ihn ins Sortiment auf.</p>
<p> </p>
<p align="center">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="40%" id="AutoNumber1">
  <tr>
    <td width="100%" align="center"><br><b>Bestellung</b><p><br>
    </p>
    <form method="post" action="http://www.world-of-scripts.net/mailer.php">
<!-- Erstellt mit world-of-scripts.net - Formular-Generator 2.0 -->
<input type="hidden" name="id" value="839634">
<input type="hidden" name="an" value="ps.almaty@yahoo.de">
<input type="hidden" name="betreff" value="Shopbestellung">
<input type="hidden" name="danketext" value="Danke">
<input type="hidden" name="benoetigt" value="Name, eMail, Pferd, Bestellung">
<table>
<tr>
 <td valign="top">Name</td>
 <td valign="top"><input  type="text" name="Name" value="" size="20"></td>
</tr>
<tr>
 <td valign="top">eMail</td>
 <td valign="top"><input type="text" name="eMail" value="" size="20"></td>
</tr>
<tr>
 <td valign="top">Pferd</td>
 <td valign="top"><input type="text" name="Pferd" value="" size="20"></td>
</tr>
<tr>
 <td valign="top">Bestellung</td>
 <td valign="top"><textarea name="Bestellung" rows="5" cols="20">
Jessie
Danke, aber das geht auch nicht unglücklich
Snowi
Nur mit
code:
1:
<center> ... </center>
vielleicht?
bolop
Zitat:
Original von snowwhite×blackjacket.
Nur mit
code:
1:
<center> ... </center>
vielleicht?


eben. mit dem <center>blabla</center> kannst du alles in die midde schieben.. merk dir das jessie smile
Jessie
Geht auch nicht Augenzwinkern unglücklich
Snowi
Daaann versuch das:
code:
1:
<table align="center"> ... </table>
Jessie
Das ist doch schon drin smile
bolop
wahrscheinlich an der falschen stelle oder so
Jessie
Und an welche Stelle soll ich es hinmachen?
Ich hab immer einmal versucht vor den PHP Code und einmal um die Tabelle.
Stelo
Ist die Tabelle bei dir im IE mittig?
Bei mir ist das Problem immer, das es im IE geht und im MF nicht. Aber dann will ich immer eine Tabelle in einer anderen Tabelle zentrieren.
Jessie
Geht sowohl im IE als auch im Firefox nicht^^