Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Center shop (setting the table width)


pjb

Recommended Posts

I have followed the instruction on p56 of the osC doc to change the width of the shopping cart to center on the page, but is off to the left.

 

Basically I have changed all the catalog files from (only done this once per cat. file):

<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">

 

to

 

<table border="0" width="770" cellspacing="0" cellpadding="0">

<tr>

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

 

and on the header and footer changed all to:

<table border="0" width="700" cellspacing="0" cellpadding="0">

(Even if the width is 770 still have smae problem)

Any suggestions?

Pete

Link to comment
Share on other sites

Thank agian Vger. I've sorted it now I missed the align="center" tag. However your contribution would of made the job effortless.

Link to comment
Share on other sites

Fixing and centering your site doesn't get any easier than with my contribution. The only time it doesn't work is if you've already put a lot of code in to try and fix and centre the site and leave it in place when you install my contribution.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...