Center klappt nicht

Status
Nicht offen für weitere Antworten.

PhoenixDH

Erfahrenes Mitglied
Ich bin am verzweifeln, hab auf meiner Seite ein Zufallsbild, das per include in meine Hauptseite eingebaut wird ! Das ist nicht das Problem, das Problem ist, das es nicht <center> angezeigt wird, sondern rechts ausgerichtet ist. Das ist aber nur im I.E. so ! Mozilla ist es gecentert !

Die Ausgabe in der Datei die included wird wird per echo ausgegeben !

Kann sich vielleicht das mal jemand anschaun, denb Quellcode meine ich ?

Da wäre ich euch sehr dankbar !
 
Das ist die Datei die included wird:

Code:
<?php

$pic_code_array="SELECT photo_id, photo_category FROM ".$pref."gallery_photos ORDER BY rand() LIMIT 1";
$pic_code_result=mysql_query($pic_code_array);

while($pic_code=mysql_fetch_array($pic_code_result))
{
echo "<center><table cellpadding=1 cellspacing=3 bgcolor=black><tr><td><p align=center><b><a href=./Forum/photos.php?cid=".$pic_code[photo_category]."&pid=".$pic_code[photo_id]." style=color:FFFFFF;font-size:11px;font-family:verdana,helvetica,tahoma;text-decoration:none>Vote for me</a></b></td>";
echo "</tr><tr><td><p align=center><img src=http://www.tuning-freaks-pfalz.de/Forum/gallery/tb_".$pic_code[photo_id].".jpg hspace=5 width=100 border=0></td></tr><tr>";
echo "<td><p align=center><a href=./Forum/fight.php style=color:FFFFFF;font-size:11px;font-family:verdana,helvetica,tahoma;text-decoration:none><b>Fight with me</b></a></td></tr></table></center>";
}

?>

das ist der Teil in dem sie aufgerufen wird:

Code:
<tr>
<td width="11" height="15"></td>
<td width="134" height="15">
<table cellspacing="0" cellpadding="0" width="115%" align="center"
border="0">
<tbody>
<tr>
<td width="90%" height="10">
<div align="center"> </div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td width="11" height="15"></td>
<td width="134" height="15">
<table cellspacing="0" cellpadding="0" width="115%" align="center"
border="0">
<tbody>
<tr>
<td width="90%" height="10" align="center"><?php 
                     include("zufallsbild.php"); 
                       ?></td>
</tr>
</tbody>
</table>
</td>
</tr>

EDIT:

Hat sich erledigt ! Habs gefunden, lag an den 115% die ich übersehen hatte !
 
Zuletzt bearbeitet:
Status
Nicht offen für weitere Antworten.
Zurück