Current location: Hot Scripts Forums » General Web Coding » CSS » [SOLVED] help please


[SOLVED] help please

Reply
  #1 (permalink)  
Old 08-07-08, 10:55 PM
Mike Anime Mike Anime is offline
Newbie Coder
 
Join Date: Jun 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] help please

i am not sure if this is easier to do in HTML, CSS or a php script.

on my gallery pages (like this one here http://www.animerealmz.net/VOL_gallery.php )

you will see a section on the bottom with links to other galleries on my site.


what i want to do is

1) have 3 or 4 links per row.

2) be in alphabetical order

3) and neater than they look now.


instead of bombarding anyone with ALL the codeing i use on my site i will just post up what i got now that deals with the section of my pages that need work.


this is part of the CSS i use for the overall looks of the site spificley the links for the gallery links in this case
Code:
a.space { 
   margin-right: 11%; 
   margin-left: 11%; 
}
ADDED AFTER POSTING changing the % to px doesn't help

this is the HTML used in the galleries.txt file being used for the links i wish to change.

HTML Code:
<link rel=stylesheet type="text/css" href="/style.css">



<table width="100%" cellpadding="25" cellspacing="25" border="0">
<tr>
<td width=100% align=center>
<br><HR color=silver>
<font color=silver face=arial><h3>ARZ Home</h3></font>
<a href="http://www.animerealmz.net">Home</A>
<HR color=silver>
<font color=silver face=arial><h3>My Gallery Pages</h3></font>
<a href="http://www.animerealmz.net/CCS_gallery.php" class="space"> Card Captior Sakura </A>
<a href="http://www.animerealmz.net/LODOSS_gallery.php" class="space"> Record Of Lodoss</A>
<a href="http://www.animerealmz.net/GW_gallery.php" class="space"> Gundam Wing </A>
<br><br>
<a href="http://www.animerealmz.net/SM_gallery.php" class="space"> Sailor Moon </A>
<a href="http://www.animerealmz.net/TEN_gallery.php" class="space"> Tenchi </A>
<a href="http://www.animerealmz.net/FY_gallery.php" class="space"> Fushigi Yuugi </A>
<br><br>
<a href="http://www.animerealmz.net/EVA_gallery.php" class="space"> Evangelion </A>
<a href="http://www.animerealmz.net/DB_gallery.php" class="space"> Dragon Ball Series </A>
<a href="http://www.animerealmz.net/LAIN_gallery.php" class="space"> Series Experament Lain </A>
<br><br>
<a href="http://www.animerealmz.net/CB_gallery.php" class="space"> CowBoy Bebop </A>
<a href="http://www.animerealmz.net/TRI_gallery.php" class="space"> Trigun </A>
<a href="http://www.animerealmz.net/EF_gallery.php" class="space"> EscaFlowne </A>
<br><br>
<a href="http://www.animerealmz.net/YUGI_gallery.php" class="space"> Yu~Gi~Oh </A> 
<a href="http://www.animerealmz.net/MAC_gallery.php" class="space"> Macross </A>
<a href="http://www.animerealmz.net/AS_gallery.php" class="space"> Appleseed Series</A>
<br><br>
<a href="http://www.animerealmz.net/BLEACH_gallery.php" class="space"> Bleach </A>
<a href="http://www.animerealmz.net/BSeed_gallery.php" class="space"> Blue Seed</A>
<a href="http://www.animerealmz.net/DeathNote_gallery.php" class="space"> Death Note</A>
<br><br>
<a href="http://www.animerealmz.net/NARUTO_gallery.php" class="space"> Naruto</A>
<a href="http://www.animerealmz.net/OnePiece_gallery.php" class="space"> Robotech</A> 
<a href="http://www.animerealmz.net/YYH_gallery.php" class="space"> Yu Yu Hakusho </A>
</center></td></tr></table>


and finally on the bottom of the gallery pages i use this PHP script to call the galleries.txt page.


PHP Code:

<?php 


$_GET
['foo'] = 1
$_GET['bar'] = 2

include 
'galleries.txt'

$foo 1
$bar 2

?>

if there is an easier way to do this i am open to new ideas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 08-08-08, 05:21 AM
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
Try it like this:
PHP Code:

 <?php  

$_GET
['foo'] = 1;  
$_GET['bar'] = 2;  

include 
'galleries.php';  

$foo 1;  
$bar 2;  

?>
galleries.php
PHP Code:

<style>
.gallery_header {
   text-align:center;
   padding:25px;
   padding-bottom:0px;
}
.a_container {
   width:150px;
   text-align:left;
}
.center_td {
   text-align:center;
   width:25%; /* 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);
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<ceil(count($array)/3);$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>';
 if(
$array[$i+7]){echo '<td class="center_td"><div class="a_container"><a href="http://www.animerealmz.net/'.$array[$i+7][1].'">'.$array[$i+7][0].'</a></div></td>';}
 if(
$array[$i+14]){echo '<td align="left"><div class="a_container"><a href="http://www.animerealmz.net/'.$array[$i+14][1].'">'.$array[$i+14][0].'</a></div></td>';}
 echo 
'</tr>';
 }
echo 
'</table>';
?>
__________________
Jerry Broughton

Last edited by job0107; 08-08-08 at 05:26 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 08-08-08, 06:02 AM
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
Actually this galleries.php will work a little better.
It will automatically adjust for different number of elements in $array.

galleries.php
PHP Code:

<style>
.gallery_header {
   text-align:center;
   padding:25px;
   padding-bottom:0px;
}
.a_container {
   width:150px;
   text-align:left;
}
.center_td {
   text-align:center;
   width:25%; /* 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 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></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></td>';
 echo 
'</tr>';
 }
echo 
'</table>';
?>
Note: This program will not work correctly with less than 3 array elements in $array.
At current there are 21 array elements in $array.
__________________
Jerry Broughton

Last edited by job0107; 08-08-08 at 06:24 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 08-08-08, 06:46 AM
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
One more revision. I have fixed the code so it will work with any number of array elements in $array.

galleries.php
PHP Code:

<style>
.gallery_header {
   text-align:center;
   padding:25px;
   padding-bottom:0px;
}
.a_container {
   width:150px;
   text-align:left;
}
.center_td {
   text-align:center;
   width:25%; /* 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 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 class="center_td"><div class="a_container">&nbsp;</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">&nbsp;</div></td>';
 echo 
'</tr>';
 }
echo 
'</table>';
?>
__________________
Jerry Broughton
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 08-10-08, 07:38 PM
Mike Anime Mike Anime is offline
Newbie Coder
 
Join Date: Jun 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
thanks that works great

i just need to know where i edit the font size for the links and i am all set thanks ever so much


and is it possible to put spaces between the rows of links without rewriting the script ?

if not then just resizing the links will work great thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 08-11-08, 12:30 AM
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
Quote:
Originally Posted by Mike Anime View Post
thanks that works great

i just need to know where i edit the font size for the links and i am all set thanks ever so much


and is it possible to put spaces between the rows of links without rewriting the script ?

if not then just resizing the links will work great thanks
Everything can be done in the class a_container.

See example:
CSS Code:
  1. <style>
  2. .gallery_header {
  3.    text-align:center;
  4.    padding:25px;
  5.    padding-bottom:0px;
  6. }
  7. .a_container {
  8.    /* Adjust the width to match font size. */
  9.    /* 115 @ 12, 135 @ 14, 145 @ 16, 175 @ 18, 190 @ 20 */
  10.    width:175px;
  11.    font-size:18px;
  12.    /* Adjust width if add bold. */
  13.    /* 130 @ 12, 150 @ 14, 165 @ 16, 185 @ 18, 205 @ 20 */
  14.    /* font-weight:bold; */
  15.    text-align:left;
  16.    padding-bottom:10px; /* Adjust this value to add spacing. */
  17. }
  18. .center_td {
  19.    text-align:center;
  20.    width:30%; /* Adjust this value for width of display. */
  21. }
  22. .h3_style {
  23.     color:silver;
  24.     font-family:arial;
  25. }
  26. </style>
  27. <?php
  28. $array = array(
  29.                array("Card Captior Sakura","CCS_gallery.php"),
  30.                array("Record Of Lodoss","LODOSS_gallery.php"),
  31.                array("Gundam Wing","GW_gallery.php"),
  32.                array("Sailor Moon","SM_gallery.php"),
  33.                array("Tenchi","TEN_gallery.php"),
  34.                array("Fushigi Yuugi","FY_gallery.php"),
  35.                array("Evangelion","EVA_gallery.php"),
  36.                array("Dragon Ball Series","DB_gallery.php"),
  37.                array("Series Experament Lain","LAIN_gallery.php"),
  38.                array("CowBoy Bebop","CB_gallery.php"),
  39.                array("Trigun","TRI_gallery.php"),
  40.                array("EscaFlowne","EF_gallery.php"),
  41.                array("Yu Gi Oh","YUGI_gallery.php"),
  42.                array("Macross","MAC_gallery.php"),
  43.                array("Appleseed Series","AS_gallery.php"),
  44.                array("Bleach","BLEACH_gallery.php"),
  45.                array("Blue Seed","BSeed_gallery.php"),
  46.                array("Death Note","DeathNote_gallery.php"),
  47.                array("Naruto","NARUTO_gallery.php"),
  48.                array("Robotech","OnePiece_gallery.php"),
  49.                array("Yu Yu Hakusho","YYH_gallery.php")
  50.                );
  51. sort($array);
  52. $rows = ceil(count($array)/3);
  53. 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>';
  54. for($i=0;$i<$rows;$i++)
  55. {
  56.  echo '<tr><td align="right"><div class="a_container"><a href="http://www.animerealmz.net/'.$array[$i][1].'">'.$array[$i][0].'</a></div></td>';
  57.  echo $td2 = $array[$i+$rows] ? '<td 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 class="center_td"><div class="a_container">&nbsp;</div></td>';
  58.  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>';
  59.  echo '</tr>';
  60.  }
  61. echo '</table>';
  62. ?>
__________________
Jerry Broughton
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 08-11-08, 01:43 AM
Mike Anime Mike Anime is offline
Newbie Coder
 
Join Date: Jun 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by job0107 View Post
Everything can be done in the class a_container.

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


i can't get it to work no matter what i do

i made it work last night useing the same method i am now to edit the galleries.php file

Parse error: syntax error, unexpected '"', expecting ',' or ';' in /home/animerea/public_html/galleries.php on line 53


on here http://www.animerealmz.net/VOL_gallery.php


even the other script you posted last won't work now for some odd reason.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 08-11-08, 04:31 AM
Mike Anime Mike Anime is offline
Newbie Coder
 
Join Date: Jun 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
i got it working who hoo !!!!

the last revision of yours gave me an error near the end of the script so i just added the new .acontainer part from the newest revision to the prior one
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #9 (permalink)  
Old 08-11-08, 09:14 AM
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
You still have a couple of problems.
First, look in your style sheet at these two styles.
Rem out the font-size parts.
CSS Code:
  1. A:link,A:active,A:visited {
  2. /*    FONT-SIZE: 10px; FONT-WEIGHT: bold; */
  3.     COLOR: b7ccb0;
  4.     FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
  5.     TEXT-DECORATION: none
  6. }
  7.  
  8. A:hover {
  9. /*    FONT-SIZE: 10px;
  10.     FONT-WEIGHT: bold;*/
  11.     COLOR: #6ea87d;
  12.     FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
  13.     TEXT-DECORATION: none
  14. }

And second, at the end of the main table where you insert the gallery table from galleries.php. Close the main table first then insert galleries.php.
__________________
Jerry Broughton
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #10 (permalink)  
Old 08-11-08, 11: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 11:52 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 08:40 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.