Geschrieben von SnakeBlood am 06.02.2006 um 02:24:
Tabellenproblem mit center Ausrichtung
Hi Leute !
Folgendes Problem habe ich :
Ich habe eine neue PhP Seite mit nem
Template erstellt und möchte
das die obere Reihe mittig ist ,genauso wie die untere , ich kriegs aber nicht hin
Es sieht derzeit so aus :
Ich möchte das die obere und untere reihe im center ist und nebeneinander so wie bei der oberen Reihe !
Mein
Template sieht so aus :
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:
|
{!DOCTYPE}
<html>
<head>
<title>$master_board_name - Toplisten Vote </title>
$headinclude
</head>
<body id="bg">
$header
<tr bgcolor="{tablecolora}" id="tablea">
<td><table cellpadding=0 cellspacing=0 border=0 width="100%">
<tr>
<td><smallfont><b><a href="index.php?sid=$session[hash]">$master_board_name</a> » Toplisten Vote</b></font></td>
<td align="right"><smallfont><b>$usercbar</b></font></td>
</tr>
</table></td>
</tr>
</table><br>
<table cellpadding=4 cellspacing=1 border=0 width="{tableinwidth}" bgcolor="{tableinbordercolor}" align="center">
<tr id="tablea" bgcolor="{tablecolora}">
<td>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="left">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 1</b><hr><a href="http://www.giga-toplist.com/cgi-bin/topsites.cgi?klick=499" target="_blank"><img src="http://www.giga-toplist.com/cgi-bin/topsites.cgi?button=show" alt="" border="0"></a></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="left">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 2</b><hr><!-- Anfang des Topsites Codes der Listinus-Toppages -->
<a href="http://click.listinus.de/topsite.php?id=52383" target="_blank"><img src="http://icon.listinus.de/topicon.php?id=52383" alt="Listinus Toplisten" border="0"></a>
<!-- Ende des Topsites Codes der Listinus-Toppages --></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="left">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 3</b><hr><a href="http://www.topsites24.de/ts/ts.cgi?klick=299&tl=kalle" target="_blank"><img src="http://www.fun4germany.de/kalle04.gif" alt="Hier gehts zur Fun 4 Germany - Top 100" border="0"></a></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="left">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 4</b><hr><a href="http://www.topsites24.de/ts/ts.cgi?klick=1092&tl=thesnake" target="_blank"><img src="http://www.beepworld.de/memberdateien/members71/petra360/internet_top.gif" alt="Hier gehts zur neuen Topliste" border="0"></a></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="left">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 5</b><hr><a href="http://laedel.light.hl-users.com/cgi-bin/toplist//topsites.cgi?klick=1158" target="_blank"><img src="http://laedel.light.hl-users.com/cgi-bin/toplist//topsites.cgi?button=show" alt="Supertoplist24" border="0"></a></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="left">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 6</b><hr><a href="http://www.88c.de/topliste/count.php?liste=82&id=5923" target="_blank"><img src="http://freespace.kb-hosting.de/stepar/VoteSteffensTOP200.gif" border=0></a></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="left">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 7</b><hr><a href="http://foren.worldtoplist.de/in.php?id=23">
<img src="http://foren.worldtoplist.de/button.php?id=23" border="0">
</a></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="left">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 8</b><hr><a href="http://www4.topsites24.de/ts/ts.cgi?klick=52&tl=Steffen1205" target="_blank"><img src="http://home.tiscali.de/littledevil140/Top-List/buttonvote.jpg" alt="Hier gehts zur Topliste" border="0"></a></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="left">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 9</b><hr><a href="http://www.topsites24.net/ts/ts.cgi?klick=493&tl=simonfritz1" target="_blank"><img src="http://www.familiengeschichten.com/toplist.gif" alt="Hier gehts zur neuen Topliste" border="0"></a></center></td></tr>
</td></tr>
</table><br>
</td>
</tr>
</table>
<table cellpadding=4 cellspacing=1 border=0 width="{tableinwidth}" bgcolor="{tableinbordercolor}" align="center">
<tr id="tablea" bgcolor="{tablecolora}">
<td>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="center">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 10</b><hr><!-- Top in Top out Die Topliste Code Start -->
<center>
<a href="http://www.just-service123.de/cgi-bin/megatoplist/toplist.pl?action=click_in&account=SnakeBlood" target="_blank">
<img border="0" src="http://top-in-top-out.de/grafik/Top_in_Top_out1.gif" width="88" height="31" alt="Top in Top out Die Topliste">
</a></center>
<!-- Top in Top out Die Topliste Code Ende --></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="center">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 11</b><hr><!-- MegaTopListe.de - Kategorie Boards - Professionelle Websitepromotion Code Start -->
<center>
<a href="http://www.megatopliste.de/cgi-bin/internet/boards/toplist.pl?action=click_in&account=SnakeBlood" target="_blank">
<img border="0" src="http://www.megatopliste.de/toplisten/button/boards.gif" width="88" height="31" alt="www.megatopliste.de">
</a></center>
<!-- MegaTopListe.de - Kategorie Boards - Professionelle Websitepromotion Code Ende --></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="center">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 12</b><hr><a href="http://www.topsites24.net/ts/ts.cgi?klick=94&tl=BVB09D" target="_blank"><img src="http://yetanotherboard.de/wbb2/images/logo_toplist.gif" alt="YAB - Toplist" border="0"></a></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="center">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 13</b><hr><a href="http://www.topsites24.net/ts/ts.cgi?klick=4242&tl=GermanTop2003" target="_blank"><img src="http://www.germantop.com/images/vote2.gif" alt="Hier gehts zur neuen Topliste" border="0"></a></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="center">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 14</b><hr><a href="http://www4.topsites24.de/ts/ts.cgi?klick=205&tl=wstlent" target="_blank"><img src="http://www.wst-zockerplanet.de/assets/images/topsitebutton.gif" alt="Hier gehts zu EURO TOP 100" border="0"></a></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="center">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 15</b><hr><a href="http://www.kapteinat.de/cgi-bin/topsite/topsites.cgi?klick=954" target="_blank"><img src="http://www.kapteinat.de/cgi-bin/topsite/topsites.cgi?button=show" alt="" border="0"></a></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="center">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 16</b><hr><a href="http://www.toplist-x.de/rein.php?id=786" target="_blank"><img src="http://www.toplist-x.de/gra/logo2.gif" align="BOTTOM" border="0"></a></center></td></tr>
<table bgcolor="{tableinbordercolor}" cellpadding=4 cellspacing=1 border=0 align="center">
<tr><td bgcolor="{tablecolorb}" id="tablea"><center><b>Vote 17</b><hr><!-- Anfang des Topsites Codes der Listinus-Toppages -->
<a href="http://click.listinus.de/topsite.php?id=56482" target="_blank"><img src="http://icon.listinus.de/topicon.php?id=56482" alt="Listinus Toplisten" border="0"></a>
<!-- Ende des Topsites Codes der Listinus-Toppages --></center></td></tr>
</td></tr>
</table>
</td>
</tr>
</tr>
</table><br>
$footer
</body>
</html> |
|
Ich weiss es sind viele Lücken aber das erleichtert das arbeiten daran erstmal
Ich kriegs nicht hin hab schon mehr als 3 Stunden versucht und versucht aber irgendwie will das nich :/
Wäre super wenn mir da einer helfen könnte !
MFG
SnakeBlood
Geschrieben von SnakeBlood am 06.02.2006 um 17:54:
Danke Martin, ich habs jedoch noch geschafft nur nichtmehr hierhingeschrieben , war bis 9 uhr am Pc *g*
Ich hatte noch überflüssige center / tr tags rausgeschmissen und nun gehts
Kannst ja mal gucken wenn du magst , ist meine erste PhP Seite *stolzbin*
www.darealfreakshow.de/wbblite/Vote.php
Geschrieben von mkkcs am 06.02.2006 um 19:28:
so dann fangen wir mal mit der Fehlerprüfung an !
- 1. - es ist noch ein Border um das Banner drum rum !!
code: |
1:
2:
|
<a href="http://www.darealfreakshow.de/Vote.php"><img src="http://www.darealfreakshow.de/Banner&Buttons/votebanner.gif" title="Vote doch bitte für uns !"></a> |
|
- 2. - GROß-klein-Schreibung und Sonderzeichen
+ Banner&Buttons - als Verzeichnis !
da würdest Du bei mir Probleme bekommen ! spätestens wenn ich ein Backup mache, denn ich spiele alle Dateien grundsätzlich in kleinschreibung vom und auf den Webspace !!
denn meistensten sind es Linux/unix-Systeme und da wird ein Unterschied zwischen Groß-klein-Schreibung, da kannst Du nämlich 2 verschiedene Dateien mit gleichen Namen haben !
Mein_Bild.gif <> mein_bild.gif
genauso sollte man es unterlassen, irgendwelche Sonderzeichen in Pfade einzutragen !
& iss net schääään
und mit dem Wort Bannner mußt Du sowieso vorsichtig sein ! denn manche Werbe-Blocker reagieren auf das Wort Banner !! und zeigen es dann nicht an !
- 3. - <center> .... </center> Anweisungen sind absolut unnötig und man kann schnell das </center> vergessen, sauberer ist es wenn man ein align="center" in den <td..>-Tag reinschreibt !
- 4. - Tabellen-Anweisungen
cellpadding=4 cellspacing=1 border=0
ist besser so -> cellpadding="4" cellspacing="1" border="0"
(wurde auch bei einem Update vom Lite gemacht ! )
- 5. - warum setzt Du sowas rein -> bgcolor="#2C2C2C" id="tablea"
Du hast doch schon im CSS (Designpack) den tablea / tableb Farben gesetzt, da brauchst Du doch kein bgcolor="#2C2C2C" mehr setzten ! doppeltgemoppelt !
- 6. -
code: |
1:
2:
3:
4:
5:
6:
7:
8:
|
<br> <tr><td bgcolor="#2C2C2C" id="tablea"><center><font face="verdana" size="1"><a href="impressum.php?sid=" title="Zum Impressum"><b>Impressum</b></a></font></center></td></tr>
<tr><td bgcolor="#2C2C2C" id="tablea"><center><font face="verdana" size="1"><a href="counter.php?sid=" title="Counter by progressive © 2004">Besucher gesamt : <b>52411</b> «» Besucher heute : <b>198</b> «» Besucher gestern : <b>250</b></a></font></center></td></tr>
<center><td bgcolor="#2C2C2C" id="tablea" align="center" colspan="2">
<a href="javascript:self.scrollTo(0,0);"><b><font face="verdana" size="1">Move to Top</font></b></a>
</table>
</td></center>
|
|
was hat das <center> vor dem <td>-Tag zusuchen und der </center> ist hinter dem </td>
iss einfach Programmtechnisch falsch ! (siehe auch Punkt 3. )
- 7. - im Table / TD - Tag folgendes
code: |
1:
|
background="images/bb_black/footer.gif" width="100%" height="30" |
|
iss net schääään
Richtig und xhtml-konformer wäre
code: |
1:
2:
|
style="width:100%; height:30px; background-image:URL({imagefolder}/footer.gif;" |
|
iss zwar nicht Dein Fehler sondern von dem jenigen der den Footer erstellt hat !
Fiel mir aber auf !
so zum ersten sollte es wohl reichen !