Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Layout help


Guest

Recommended Posts

Posted

I've centered the cart and the only thing I don't like is the slight margin that makes the colums narrower than the header. If you know how I can get rid of the column margins please advise me. thanks

 

http://i-zy.net/joinus/catalog/

Posted

you're probably refering to the table margins of the catalog scripts. Open the catalog\index.php find this code:

 

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

 

Adjust the cellspacing and cellpadding, for instance you could set them to 0 to see if that's what you want.

Posted
you're probably refering to the table margins of the catalog scripts. Open the catalog\index.php find this code:

 

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

 

Adjust the cellspacing and cellpadding, for instance you could set them to 0 to see if that's what you want.

 

I further figured out you need to do this in conditions.php. too! Are there more I wonder?

Even at "0" there seems to be 1pixel space on the outside of the colums, which might be due to the

wrapper table... so getting close but no cigar yet! I might try css DIV tag to wrap everything instead of the table. Any other suggestions?

Posted

hmm..., I stilll see the table with a cellspacing=2 Looks like

 

<table border="0" width="100%" cellspacing="2" cellpadding="0">

 

and yes almost every scipt on the catalog directory needs to be changed for this unless you're using some common code via include files.

Posted
hmm..., I stilll see the table with a cellspacing=2 Looks like

 

<table border="0" width="100%" cellspacing="2" cellpadding="0">

 

and yes almost every scipt on the catalog directory needs to be changed for this unless you're using some common code via include files.

 

Thanks for your input, I returned the settings! I need to consider a different way to achieve this globally.

Archived

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

×
×
  • Create New...