View Single Post
  #10 (permalink)  
Old 08-11-08, 10:43 PM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
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:
  1. .center_td {
  2.     width:50%;  /* Adjust this value for width of display. */
  3. }

And I changed part of the HTML in the PHP code:
PHP Code:

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">&nbsp;</div></td>'
The complete code:
CSS Code:
  1. <style>
  2. .gallery_header {
  3.    text-align:center;
  4.    padding:25px;
  5.    padding-bottom:0px;
  6. }
  7. .a_container {
  8.    width:210px;
  9.    font-size:20px;
  10.    font-weight:bold;
  11.    text-align:left;
  12.    padding-bottom:30px; /* Adjust this value to add spacing. */
  13. }
  14. .center_td {
  15.    width:50%; /* Adjust this value for width of display. */
  16. }
  17. .h3_style {
  18.     color:silver;
  19.     font-family:arial;
  20. }
  21. </style>
  22. <?php
  23. $array = array(
  24.                array("Card Captior Sakura","CCS_gallery.php"),
  25.                array("Record Of Lodoss","LODOSS_gallery.php"),
  26.                array("Gundam Wing","GW_gallery.php"),
  27.                array("Sailor Moon","SM_gallery.php"),
  28.                array("Tenchi","TEN_gallery.php"),
  29.                array("Fushigi Yuugi","FY_gallery.php"),
  30.                array("Evangelion","EVA_gallery.php"),
  31.                array("Dragon Ball Series","DB_gallery.php"),
  32.                array("Series Experament Lain","LAIN_gallery.php"),
  33.                array("CowBoy Bebop","CB_gallery.php"),
  34.                array("Trigun","TRI_gallery.php"),
  35.                array("EscaFlowne","EF_gallery.php"),
  36.                array("Yu Gi Oh","YUGI_gallery.php"),
  37.                array("Macross","MAC_gallery.php"),
  38.                array("Appleseed Series","AS_gallery.php"),
  39.                array("Bleach","BLEACH_gallery.php"),
  40.                array("Blue Seed","BSeed_gallery.php"),
  41.                array("Death Note","DeathNote_gallery.php"),
  42.                array("Naruto","NARUTO_gallery.php"),
  43.                array("Robotech","OnePiece_gallery.php"),
  44.                array("Yu Yu Hakusho","YYH_gallery.php")
  45.                );
  46. sort($array);
  47. $rows = ceil(count($array)/3);
  48. 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>';
  49. for($i=0;$i<$rows;$i++)
  50. {
  51.  echo '<tr><td align="right"><div class="a_container"><a href="http://www.animerealmz.net/'.$array[$i][1].'">'.$array[$i][0].'</a></div></td>';
  52.  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">&nbsp;</div></td>';
  53.  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">&nbsp;</div></td>';
  54.  echo '</tr>';
  55.  }
  56. echo '</table>';
  57. ?>
__________________
Jerry Broughton

Last edited by job0107; 08-11-08 at 10:52 PM.
Reply With Quote