Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Verticle spacing of infoboxes


walkman

Recommended Posts

I decided to remove the spacing between the infoboxes in the left and right columns.

 

I searched for methods on how to do this in past messages. Most of those messages suggested changing the cellpadding attribute for the column tables in the index.php file -- as well as in all other main pages.

 

 

I found an easier way to do this by posting the following lines at the beginning of column_left.php and column_right.php:

 

-------- create a new table with no cell padding ----------------------------

?>

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

<?php

------------------------------------

 

and this line at the end of those files:

 

----------- close table -------------------------

</table></td>

------------------------------------

 

 

 

If I want to add spacing between any particular infoboxes then I can insert the following spacer between the appropriate includes

 

 

 

----------- to create controlled spacing ---------------------

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

-----------------------------------------------------------------

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...