Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No spaces between Column Boxes


andrew4545

Recommended Posts

I don't want there to be any spaces between the colum boxes so that it looks like one column.

 

I've tried putting the table cellspacing down to zero in boxes.php

 

but there is still a gap between them any ideas?

Link to comment
Share on other sites

In your files for example index.php and account.php you will see the following 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">

 

If you alter this so it looks like:

 

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3" class="maintables" align="center">
 <tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">

 

You lose nearly all the spacing, I don't know how else you would do it apart from to combine all your boxes into 1 file/table which may work.

Link to comment
Share on other sites

In your files for example index.php and account.php you will see the following code:

 

<!-- body //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">

That moved all of the info boxes in the left column together so it looks like one continual column, moved the left column up touching the header box, and moved the whole column completely to the left margin, which is in line with the header box.

 

It also moved the left edge of the center portion of the page to touch the right side of the left column.

 

However, it didn't touch the right column. Still had spaces between the info boxes and the right column and the header box. I was so close, but can't see why the right column was not affected. Not until I scrolled further down in the code to find this and change cellpadding="2" to cellpadding="0".

 

<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">

 

Now everything is snugged up tight.

 

Thanks,

Verne

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...