Gegen Bilderklau - Das Original (https://www.gegen-bilderklau.net/index.php)
- Design, Website, Copyright (https://www.gegen-bilderklau.net/board.php?boardid=80)
--- Homepagehilfe (https://www.gegen-bilderklau.net/board.php?boardid=27)
---- Homepagehilfe - Archiv (https://www.gegen-bilderklau.net/board.php?boardid=139)
----- [HTML] Tabelle mittig setzten (https://www.gegen-bilderklau.net/thread.php?threadid=160661)


Geschrieben von Nasha am 17.08.2009 um 10:38:

  Tabelle mittig setzten

Ich hab ein kleines Problem mit meinem Pferdesteckbrief. Und zwar sind das insgesamt 4 verschiedene Seiten, aber bei drei davon ist die Tabelle links anstatt in der Mitte.

Ich arbeite mit dem Programm Nvu und in der Vorschau ist jede Tabelle in der Mitte.

Vielleicht kann mir ja jemand einen Tipp geben?

Hier mal der Code der zweiten Seite:

code:
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:
<html>
<head>
  <style type="text/css"><!--
BODY {
scrollbar-base-color: #d7d7d7;
scrollbar-track-color: #d7d7d7;
scrollbar-face-color: #d7d7d7;
scrollbar-highlight-color: #d7d7d7;
scrollbar-3dlight-color: #d7d7d7;
scrollbar-darkshadow-color: #d7d7d7;
scrollbar-shadow-color: #d7d7d7;
scrollbar-arrow-color: #d7d7d7;
}
--></style>
  <style type="text/css">
body { background-color:d7d7d7 }
  </style>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>imperial02</title>
</head>
<body>
<div style="text-align: center;"><a
 href="imperial01.html"><img
 style="border: 0px solid ; width: 50px; height: 50px;"
 alt="Allgemein" src="../steckbrief_allgemein.jpg"></a><img
 style="width: 50px; height: 50px;" alt="Ausbildung"
 src="../steckbrief_ausbildung.jpg"><a
 href="imperial03.html"><img
 style="border: 0px solid ; width: 50px; height: 50px;"
 alt="zucht" src="../steckbrief_zucht.jpg"></a><a
 href="imperial04.html"><img
 style="border: 0px solid ; width: 50px; height: 50px;"
 alt="erfolge" src="../steckbrief_erfolge.jpg"></a><br>
<small style="color: rgb(204, 102, 0);"><small><span
 style="font-family: Verdana;">Ausbildung &amp; Verhalten</span></small></small><br>
<br style="color: rgb(204, 102, 0);">
</div>
<table
 style="background-color: rgb(192, 192, 192); width: 600px; text-align: left; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <td>
      <table
 style="width: 588px; text-align: left; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="2" cellspacing="2">
        <tbody>
          <tr>
            <td
 style="color: rgb(51, 51, 51); font-family: Verdana; text-align: center; background-color: rgb(153, 153, 153);"><small><small>Disziplin</small></small></td>
            <td
 style="color: rgb(51, 51, 51); font-family: Verdana; background-color: rgb(153, 153, 153); text-align: center;"><small><small>Ausbildung</small></small></td>
            <td
 style="color: rgb(51, 51, 51); font-family: Verdana; background-color: rgb(153, 153, 153); text-align: center;"><small><small>Potenzial</small></small></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(153, 153, 153); text-align: center; font-family: Times New Roman; color: rgb(153, 51, 0);"><small><small>D
R E S S U R</small></small></td>
            <td
 style="color: rgb(51, 51, 51); font-family: Verdana; background-color: rgb(204, 204, 204); text-align: center;"><small><small>L</small></small></td>
            <td
 style="color: rgb(51, 51, 51); font-family: Verdana; background-color: rgb(204, 204, 204); text-align: center;"><small><small>M</small></small></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(153, 153, 153); text-align: center; font-family: Times New Roman; color: rgb(153, 51, 0);"><small><small>S
P RI N G E N</small></small></td>
            <td
 style="color: rgb(51, 51, 51); font-family: Verdana; background-color: rgb(204, 204, 204); text-align: center;"><small><small>L</small></small></td>
            <td
 style="color: rgb(51, 51, 51); font-family: Verdana; background-color: rgb(204, 204, 204); text-align: center;"><small><small>S</small></small></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(153, 153, 153); text-align: center; font-family: Times New Roman; color: rgb(153, 51, 0);"><small><small>V
I E L S E I T I G K E I T</small></small></td>
            <td
 style="color: rgb(51, 51, 51); font-family: Verdana; background-color: rgb(204, 204, 204); text-align: center;"><small><small>A</small></small></td>
            <td
 style="color: rgb(51, 51, 51); font-family: Verdana; background-color: rgb(204, 204, 204); text-align: center;"><small><small>L</small></small></td>
          </tr>
        </tbody>
      </table>
      <table
 style="width: 588px; text-align: left; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="2" cellspacing="2">
        <tbody>
          <tr>
            <td
 style="font-family: Verdana; background-color: rgb(153, 153, 153); color: rgb(51, 51, 51); text-align: center;"><small><small>Verhalten
im/in/auf...</small></small></td>
            <td
 style="font-family: Verdana; background-color: rgb(153, 153, 153); color: rgb(51, 51, 51); text-align: center;"><small><small>Verhalten
zu ...% sicher</small></small></td>
            <td
 style="font-family: Verdana; color: rgb(51, 51, 51); background-color: rgb(153, 153, 153); text-align: center;"><small><small>Verhalten
verbesserbar bis ...%</small></small></td>
          </tr>
          <tr>
            <td
 style="font-family: Times New Roman; color: rgb(153, 51, 0); background-color: rgb(153, 153, 153); text-align: center;"><small><small>V
E R K E H R </small></small></td>
            <td
 style="font-family: Verdana; background-color: rgb(204, 204, 204); color: rgb(51, 51, 51); text-align: center;"><small><small>50%</small></small></td>
            <td
 style="font-family: Verdana; background-color: rgb(204, 204, 204); color: rgb(51, 51, 51); text-align: center;"><small><small>90%</small></small></td>
          </tr>
          <tr>
            <td
 style="font-family: Times New Roman; color: rgb(153, 51, 0); background-color: rgb(153, 153, 153); text-align: center;"><small><small>G
E L &Auml; N D E</small></small></td>
            <td
 style="font-family: Verdana; background-color: rgb(204, 204, 204); color: rgb(51, 51, 51); text-align: center;"><small><small>80%</small></small></td>
            <td
 style="font-family: Verdana; background-color: rgb(204, 204, 204); color: rgb(51, 51, 51); text-align: center;"><small><small>100%</small></small></td>
          </tr>
          <tr>
            <td
 style="font-family: Times New Roman; color: rgb(153, 51, 0); background-color: rgb(153, 153, 153); text-align: center;"><small><small>T
R A I N I N G</small></small></td>
            <td
 style="font-family: Verdana; background-color: rgb(204, 204, 204); color: rgb(51, 51, 51); text-align: center;"><small><small>100%</small></small></td>
            <td
 style="font-family: Verdana; background-color: rgb(204, 204, 204); color: rgb(51, 51, 51); text-align: center;"><small><small>100%</small></small></td>
          </tr>
          <tr>
            <td
 style="font-family: Times New Roman; color: rgb(153, 51, 0); text-align: center; background-color: rgb(153, 153, 153);"><small><small>T&nbsp;U
R N I E R E</small></small></td>
            <td
 style="font-family: Verdana; background-color: rgb(204, 204, 204); color: rgb(51, 51, 51); text-align: center;"><small><small>70%</small></small></td>
            <td
 style="font-family: Verdana; background-color: rgb(204, 204, 204); color: rgb(51, 51, 51); text-align: center;"><small><small>90%</small></small></td>
          </tr>
        </tbody>
      </table>
      <br>
      <div style="text-align: center;"><img
 style="width: 445px; height: 300px;" alt="blue2"
 src="file:///F:/New%20Hope/Fancy%20Hill/bl02.jpg"><br>
      <br>
      </div>
      </td>
    </tr>
  </tbody>
</table>
</body>
</html>



Geschrieben von .Dori am 17.08.2009 um 11:39:

 

code:
1:
<div style="text-align: center;">

Das definiert ja nur die ausrichtung des Textes, die Tabelle lässt das kalt.
Mach den Div Style weg und klammer einfach den ganzen code im Body mit einem <center></center> ein. Dann sollte alles mittig sein.

Außerdem ist mir noch folgendes aufgefallen ( ziemlich am Ende)
code:
1:
 src="file:///F:/New%20Hope/Fancy%20Hill/bl02.jpg"><br>

Das wird so wohl auch nicht gehen, sobald du es hochgeladen hast. Schließlich kann ja keiner auf deine Festplatte zugreifen Augenzwinkern



Geschrieben von Nasha am 17.08.2009 um 12:26:

 

dankeschön, ich werds probieren.

Ja das weiß ich eh^^
Ist nur mehr so ein Platzhalter, das ändere ich hinterher.

hat funktioniert, danke =D


Forensoftware: Burning Board, entwickelt von WoltLab GmbH