Forums / Templates, Stylesheets, Page Layout / banners not lining up right

banners not lining up right

Locked

Views: 887

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
14 Sep 2010, 9:27 PM
#1
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

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

<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-->

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

14 Sep 2010, 9:51 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: banners not lining up right

Where can this issue be seen?

Zen-Venom Get Bitten

14 Sep 2010, 10:01 PM
#3
celtic avatar

celtic

Zen Follower

Join Date:
Feb 2010
Posts:
154
Plugin Contributions:
0

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;
}

15 Sep 2010, 3:56 AM
#4
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

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

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods