Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with column_left scaling to body size


nick

Recommended Posts

Ok I have created a left column background using tables and gifs. The problem I have is that under the information box there is a big gap due to the "New Products for ..." in the body being large. I can fix this by adding ...

<tr>

<td background="images/index_16a.gif"><img src="images/pixel_trans.gif" border="0" alt="" width="150" height="300"></td>

</tr>

to the end of information.php but then it stays fixed at the 300 height size and doesn't scale nicely for categories with few products or still has a gap if a category is larger than the 300 height.

 

Can any of you html buffs pls help me out here? Simply I would like the area under the last box on the column_left side to scale (with an image background of index_1a.gif) based on the size of the body.

 

Here is what it looks like without the above code (what I want to fix) ...

without.gif

 

And here is what I want to achieve but with scaling ...

with.gif

 

Any help would be appreciated

 

 

Thanks

 

Nick

Link to comment
Share on other sites

just add the background in the pages and not in the column_left.php

 

 

<!-- body //-->

<table border="0" width="100%" cellspacing="0" cellpadding="3" align="center" bgcolor="#FFFFFF">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top" background="images/left_col_bg.gif"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

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

<!-- left_navigation_eof //-->

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...