Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default banners not lining up right

    im using firefox and i move my banners around so they are all in the header and i can seem to get them to line up right for some reason the after the second banner everything drops and i'm not sure why.

    if anyone can spot the reason please let me know what i may have missed thank you

    Code:
    <center><table><tr>
    <td>
    <?php
      if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
        if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
        }
      }
    ?>
    </td>
    <td>
    <?php
                  if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                    if ($banner->RecordCount() > 0) {
    ?>
          <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
          <?php
                    }
                  }
    ?>
    </td>
    
    <td>
    <?php
                  if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
                    if ($banner->RecordCount() > 0) {
    ?>
          <div id="bannerthree" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
          <?php
                    }
                  }
    ?>
    </td>
    
    <td>
    <?php
                  if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
                    if ($banner->RecordCount() > 0) {
    ?>
          <div id="bannerfour" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
          <?php
                    }
                  }
    ?>
    </td>
    <td>
    <?php
      if (SHOW_BANNERS_GROUP_SET5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5)) {
        if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerFive" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
        }
      }
    ?>
    </td>
    
    <td>
    <?php
      if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
        if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
        }
      }
    ?>
    </td></tr></table></center>
    <!--eof banners-->
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: banners not lining up right

    Where can this issue be seen?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2010
    Posts
    154
    Plugin Contributions
    0

    Default Re: banners not lining up right

    MB1,

    In your php code, you need capital letters in bannerThree and bannerFour as the id's are case sensitive.

    Also, in your stylesheet, you only have definitions for bannerOne, bannerTwo, bannerThree

    so you'll need to add banners 4,5,6 to that...

    #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, #bannerSix {
    margin: 0px;
    padding: 0px 0px 10px;
    }

  4. #4
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: banners not lining up right

    that worked like a charm when i fixed the capital letters i had the first 3 lined up perfectly then when i added the 3 other banners in the stylesheet everything else fell in line. thank you
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

 

 

Similar Threads

  1. v150 Lining banners up on beneath navigation
    By AmyCapolupo in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 3 Aug 2012, 12:13 PM
  2. Gap Between Right Hand Banners
    By yorkshiregc in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Aug 2010, 03:29 PM
  3. Help, my banners will not center right.
    By coolscrapbook in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Dec 2008, 09:36 AM
  4. Multiple banners in RIGHT sidebox
    By kkentert in forum Basic Configuration
    Replies: 0
    Last Post: 13 Sep 2006, 10:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR