Activity Stream
48,167 MEMBERS
61380 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1.     
    #1
    Member
    Website's:
    StoneArcade.com

    Default alignment help needed

    Hi guys,a couple people tried to help me in the shoutbox yesterday with this problem,but im a total noob coder lol.. maybe someone can help me align the cat headers for me (see screenshot,or site for wht i mean)

    PHP Code: 
           <table cellspacing="2" cellpadding="2">
           {
    php} global $SEOFriendlyURLs,$themepath;
              
    $catarray am_listgamecats($db'none''flat'); // Get the array of category names
              
    $c=1;
              
    $m=4;
              foreach (
    $catarray as $a) {

                 if(
    $c == 1) { echo '<tr>';}

                 echo 
    '<td valign="top" width="25%">';
                 echo 
    '<div class="topcategory">';
                  if(
    $SEOFriendlyURLs == 0)
                    {
                     
    $url './index.php?cat='.urlencode($a);
                 } else {
                     
    $url './index.php?cat='.urlencode($a);
                 }

                 echo 
    '<table width="100%" cellspacing="2" cellpadding="2">
                 <tr>
                 <td valign="top" align="center"><a href="'
    .$url.'"><h2><b>'.$a.'</h2></b></a>
                 </td></tr>
                 <tr>
                 <td valign="top">'
    ;
                 echo 
    '<center>';
                 
    am_listnewgames('table'5$a,true,60,60);
                 echo 
    '</center></td></tr>';

                 echo 
    '<tr>
                 <td valign="top"><a href="'
    .$url.'">More '.$a.' Games</a>
                 </td>
                 </tr>'
    ;

                 echo 
    '</table>';
                 echo 
    '</td>';

                 if(
    $c == $m) { echo '</tr>'$c=0;} $c++;
              }
           {/
    php}
           </
    table
    i believe somewhere here is where i need to do it,as i said im noob to coding this type of thing,my skills are very basic still

    screenshot of wht needs to be aligned,notice the cat headers are riding the top

    iMage Reviewed by iMage on . alignment help needed Hi guys,a couple people tried to help me in the shoutbox yesterday with this problem,but im a total noob coder lol.. maybe someone can help me align the cat headers for me (see screenshot,or site for wht i mean) <table cellspacing="2" cellpadding="2"> {php} global $SEOFriendlyURLs,$themepath; $catarray = am_listgamecats($db, 'none', 'flat'); // Get the array of category names $c=1; $m=4; foreach ($catarray as $a) { Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Developer
    Website's:
    wrzc.org
    Can you say what it is you want to align. I've no idea what the problem is.

    EDIT: ok is it the headings with the blue background. They don't look right vertically?
    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

  4.     
    #3
    Respected Member
    Website's:
    GraffThe.Net MCSkatty.com MCSkatty.co.uk MCSkatty.net MCSkatty.org MCSkatty.info
    Maybe try changing teh ...

    Code: 
    <td valign="top" align="center"><a href="'.$url.'"><h2><b>'.$a.'</h2></b></a></td>
    to ...

    Code: 
    <td valign="middle" align="center"><a href="'.$url.'"><h2><b>'.$a.'</h2></b></a></td>
    Liek this ...

    Code: 
    <table cellspacing="2" cellpadding="2">
           {php} global $SEOFriendlyURLs,$themepath;
              $catarray = am_listgamecats($db, 'none', 'flat'); // Get the array of category names
              $c=1;
              $m=4;
              foreach ($catarray as $a) {
    
                 if($c == 1) { echo '<tr>';}
    
                 echo '<td valign="top" width="25%">';
                 echo '<div class="topcategory">';
                  if($SEOFriendlyURLs == 0)
                    {
                     $url = './index.php?cat='.urlencode($a);
                 } else {
                     $url = './index.php?cat='.urlencode($a);
                 }
    
                 echo '<table width="100%" cellspacing="2" cellpadding="2">
                 <tr>
                 <td valign="middle" align="center"><a href="'.$url.'"><h2><b>'.$a.'</h2></b></a>
                 </td></tr>
                 <tr>
                 <td valign="top">';
                 echo '<center>';
                 am_listnewgames('table', 5, $a,true,60,60);
                 echo '</center></td></tr>';
    
                 echo '<tr>
                 <td valign="top"><a href="'.$url.'">More '.$a.' Games</a>
                 </td>
                 </tr>';
    
                 echo '</table>';
                 echo '</td>';
    
                 if($c == $m) { echo '</tr>'; $c=0;} $c++;
              }
           {/php}
           </table>  
    idk, Just what i would try first

    atm teh title is vertically aligned to teh top of teh table when you want it aligned in teh middle.
    GraffThe.Net - The #1 Graffiti Download Site.



  5.     
    #4
    Member
    Website's:
    StoneArcade.com
    see in the screenshot (or on the site) how the category headers ( arcade,adventure etc) all seem to be at the very top of the box? i want them to align to the middle

    thanks for reply K3V i will give it a go,i think i tried tht last night tho and it didnt work

  6.     
    #5
    Respected Developer
    Website's:
    wrzc.org
    Ya now I see the problem and what you want fixed. Personally I think it's this line that need's to be changed

    Code: 
    echo '<td valign="top" width="25%">';
    to

    Code: 
    echo '<td valign="middle" width="25%">';
    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

  7.     
    #6
    Member
    Website's:
    StoneArcade.com
    ok i will try that Happy.. thanks for helping Happy and K3V ( i tried ur solution K3V and didnt work sorry)

    Edit: nope tht didnt work either Happy

  8.     
    #7
    Member
    Website's:
    StoneArcade.com
    im wondering with those solutions not working if its in the main css instead?..

    im thinking its something maybe in this bit of the css,the tableback1 is teh bg bit there

    PHP Code: 
    background:url('images/tableback1.gif'top center;
    float:left;
    display:block;
    margin:0 0 0 0}
    .
    blockdiv h4{
    text-align:center;
    font-size:95%;
    position:relative

  9.     
    #8
    Member
    whats the css for div class="topcategory"

  10.     
    #9
    Member
    Website's:
    FlowForums.com
    Quote Originally Posted by iMage View Post
    im wondering with those solutions not working if its in the main css instead?..

    im thinking its something maybe in this bit of the css,the tableback1 is teh bg bit there

    PHP Code: 
    background:url('images/tableback1.gif'top center;
    float:left;
    display:block;
    margin:0 0 0 0}
    .
    blockdiv h4{
    text-align:center;
    font-size:95%;
    position:relative
    What css is that for?

    Post the div class="topcategory"

    Also post the full index code.

  11.     
    #10
    Respected Developer
    in your main.css file find these lines

    .topcategory h2 a, .topcategory h2{
    font-size:18px;
    text-align:center;
    color:#ececec;
    text-decoration:none;
    margin:-7px 14px 5px auto}
    and set the margin of last line to 0 or try other
    margin:0px 14px 5px auto
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. vBulletin Category Alignment - Need help
    By nk2join in forum vBulletin
    Replies: 5
    Last Post: 23rd Mar 2012, 04:17 PM
  2. help with Html image alignment
    By cgworld in forum Web Development Area
    Replies: 6
    Last Post: 27th Sep 2011, 09:22 PM
  3. Alignment problem help me
    By dheeraj4uuuu in forum Web Development Area
    Replies: 3
    Last Post: 19th Jul 2011, 02:14 PM
  4. Wordpress Categories Alignment
    By Brenton in forum Wordpress
    Replies: 4
    Last Post: 25th Aug 2010, 01:37 PM
  5. DEDICATED,ACTIVE NEEDED - Moderators/GM's Needed with BENEFITS
    By robert in forum Community Cooperative
    Replies: 0
    Last Post: 18th Jul 2010, 03:36 PM

Tags for this Thread

BE SOCIAL