Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing Left and Right columns and reusing space


Neilc

Recommended Posts

Posted

Hi,

 

Can someone help me, I seem to be missing something.

 

Have followed the KnowledgeBase topic to remove left and right columns on a page by commenting out the following lines

 

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> (same for Left)

 

However, this just leaves whitespace down the side. Have set the page to 770px centred and want the body text to fill up the entire space.

 

Looking at the HTML generated, there are still empty table columns in there, which I assume are from the following statements just above the commented out "require" statement

 

<!-- body_text_eof //-->

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

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> //commented this out

<!-- right_navigation_eof //-->

 

The offending variable seems to be BOX_WIDTH which is set to "125" but I can't find it on a search. How can I zero it so the "body text" fills the page width?

 

If I do, is BOX_WIDTH used elsewhere?

 

Any other neater way to spread the body text across the ful page width?

 

Thanks in advance

 

Neil

Posted

Each of the column_left and column_right colde you removed is in a table. You need to remove the table to get the space. For the left column, that code looks like

	<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
Each of the column_left and column_right colde you removed is in a table. You need to remove the table to get the space. For the left column, that code looks like
	<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>

 

Jack

 

Thanks Jack - Simple when you engage brain - I should have spotted that myself - Ta very much :-)

 

Cheers

 

Neil

Archived

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

×
×
  • Create New...