Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Footer irregularity


adam71o

Recommended Posts

Posted

I can't seem to get rid of the white block at the very bottom....

 

of my oscommerce site.

 

Heres the last part of my footer.php...

<table border="0" bgcolor="#516d8d" width="100%" cellspacing="0" cellpadding="1">
 <tr class="footer">
   <td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>
   <td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>
 </tr>
</table>
<?php
 if ($banner = tep_banner_exists('dynamic', '468x50')) {
?>
<table border="0" bgcolor="#516d8d" width="100%" cellspacing="0" cellpadding="0">
 <tr>
   <td align="center"><br><?php echo tep_display_banner('static', $banner); ?></td>
 </tr>
   <tr>
   <td bgcolor="#516d8d" align="center" class="footer">
  <br><?php
 echo FOOTER_TEXT_BODY
 ?>
</td>
  </tr>
</table>
 <?php
 }
?>

Posted
Aww, no takers?

You've got an unnecessary "<br>" in the code (not the footer code) at the bottom of the page after the end of the footer. Find this in your index (at the end):

 

<!-- footer_eof //-->

<br>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

 

Change it to this:

<!-- footer_eof //-->

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Posted

You were absolutely right, I went back and changed half of my files by deleting the extra <br>

 

Thanks a lot!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...