Setting the Table WidthLast Update: 15th July, 2005
Article ID: 258



Introduction

You can change the width of your shopping cart to be centered on the page at a width of 770 pixels with no cellpadding or cellspacing.

Setting the Table Width

In the catalog/index.php file change this info:
<!-- body //-->
< table border="0" width="100%" cellspacing="3" cellpadding="3">
< tr>
< td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
< !-- left_navigation //-->

To this info:
<!-- body //-->
< table border="0" width="770" cellspacing="0" cellpadding="0" align="center">
< tr>
< td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
< !-- left_navigation //-->

All of the files in the catalog folder plus the catalog/includes/header.php and catalog/includes/footer.php files will need to be changed. A quick find and replace in your editor will replace all the pages that have the same code as above in the catalog folder. The header.php and footer.php files have a little different code and would need to be manually changed.

 

 

Trademark Policy | Copyright Policy | Sitemap

Copyright © 2000-2005 osCommerce. All rights reserved.