Were still having a problem with the center column in FireFox.
It centers ok in IE but not FireFox.
I have corrected the code so it will work in both browsers.
I changed part of the CSS:
CSS Code:
.center_td {
width:50%; /* Adjust this value for width of display. */
}
And I changed part of the HTML in the PHP code:
The complete code:
CSS Code:
<style>
.gallery_header {
text-align:center;
padding:25px;
padding-bottom:0px;
}
.a_container {
width:210px;
font-size:20px;
font-weight:bold;
text-align:left;
padding-bottom:30px; /* Adjust this value to add spacing. */
}
.center_td {
width:50%; /* Adjust this value for width of display. */
}
.h3_style {
color:silver;
font-family:arial;
}
</style>
<?php
$array = array(
array("Card Captior Sakura","CCS_gallery.php"),
array("Record Of Lodoss","LODOSS_gallery.php"),
array("Gundam Wing","GW_gallery.php"),
array("Sailor Moon","SM_gallery.php"),
array("Tenchi","TEN_gallery.php"),
array("Fushigi Yuugi","FY_gallery.php"),
array("Evangelion","EVA_gallery.php"),
array("Dragon Ball Series","DB_gallery.php"),
array("Series Experament Lain","LAIN_gallery.php"),
array("CowBoy Bebop","CB_gallery.php"),
array("Trigun","TRI_gallery.php"),
array("EscaFlowne","EF_gallery.php"),
array("Yu Gi Oh","YUGI_gallery.php"),
array("Macross","MAC_gallery.php"),
array("Appleseed Series","AS_gallery.php"),
array("Bleach","BLEACH_gallery.php"),
array("Blue Seed","BSeed_gallery.php"),
array("Death Note","DeathNote_gallery.php"),
array("Naruto","NARUTO_gallery.php"),
array("Robotech","OnePiece_gallery.php"),
array("Yu Yu Hakusho","YYH_gallery.php")
);
sort($array);
$rows = ceil(count($array)/3);
echo '<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="3" class="gallery_header"><br /><HR color=silver><h3 class="h3_style">ARZ Home</h3><a href="http://www.animerealmz.net">Home</a><HR color=silver><h3 class="h3_style">My Gallery Pages</h3></td></tr>';
for($i=0;$i<$rows;$i++)
{
echo '<tr><td align="right"><div class="a_container"><a href="http://www.animerealmz.net/'.$array[$i][1].'">'.$array[$i][0].'</a></div></td>';
echo $td2 = $array[$i+$rows] ? '<td align="center" class="center_td"><div class="a_container"><a href="http://www.animerealmz.net/'.$array[$i+$rows][1].'">'.$array[$i+$rows][0].'</a></div></td>' : '<td align="center" class="center_td"><div class="a_container"> </div></td>';
echo $td3 = $array[$i+($rows*2)] ? '<td align="left"><div class="a_container"><a href="http://www.animerealmz.net/'.$array[$i+($rows*2)][1].'">'.$array[$i+($rows*2)][0].'</a></div></td>' : '<td><div class="a_container"> </div></td>';
echo '</tr>';
}
echo '</table>';
?>