Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Center shop (setting the table width)


pjb

Recommended Posts

Posted

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

Posted

Undo what you have done, and look below my name for the 'Fixed Width Site With CSS' contribution.

 

Vger

Posted

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

Posted

Vger>> i used your fixed width contrib and it didnt change anything... i followed the directions to a "t"... any ideas as to what happened? I used it once before and i worked fine.

Posted

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

Archived

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

×
×
  • Create New...