Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add banner to bottom of column


jswan

Recommended Posts

Posted

This is probably so easy, I'll kick myself. I want to put a small banner at the bottom of my left column, just above the footer. I have tried every html thing I can think of, but I must have missed something. When I add a new row to the file column_left.php, the banner is added below my bottom box. I get all sorts of undesirable results when I try to add the banner to my catalog pages below the left column require.

 

The other alternative I can think of is to add a bit of my column and the banner to the footer.php. However, that will add 50 pixels of unnecessary white space to the rest of my page.

 

So, any suggestions? I'm stumped.

 

TIA.

Posted

Thanks for the suggestion The_Bear. I took a look and the page suggested adding a new table to the left_column.php file (there is an error in the code, btw, should I post a message somewhere?). I tried this last night and it still adds the banner just under my bottom box, which is still way above the bottom of the page. The cell that contains the column requirement is set up with a top justify attribute so that the boxes aren't centered vertically. Here's the code:

<!-- body //-->

<table border="0" width="750" cellspacing="0" cellpadding="0" align="center">

 <tr> 

   <td width="157" align="center" valign="top" bgcolor=#003366>

     <table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">

       <tr>

         <td> </td>

       </tr>

<!-- left_navigation //-->

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

<!-- left_navigation_eof //-->

     </table>

   </td>

   <td> </td>

<!-- body_text //-->

Anyone have another suggestion?

 

Jason

Posted

where in the code did you place it. I think you have a table ending too early or something. Trying moving it up in location

Posted

Well, I've tried putting the line in the column_left.php file in it's own table (right after the to boxes I use) as well as putting row and data tags around the boxes, then creating a new row for the banner.

 

I've also tried putting the banner in the default.php file, just below the column_left require inside and outside the table that contains the boxes. The closest I got was to take out the valign attribute in the cell that contains the nested table and boxes, then insert another nested table with two rows of one cell each. Then I put the table with the boxes in the top cell and the banner in the bottom cell. That spread out the boxes and the banner, but it centered the nested table vertically in the main cell that serves as the location for the left column.

 

Jason

Archived

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

×
×
  • Create New...