Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

change character length only on left columns


avatar1919

Recommended Posts

Posted

hi

i know that in the application_top.php file you can change both columns widths' (right and left) automatically in this file.

but how do you change the column width with one width on the left column and a different width on the right column

thanks

Posted

In your /includes/application_top.php find this code:

 

// customization for the design layout
 define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

Change it to:

 

// customization for the design layout
 define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)
 define('BOX_WIDTH_OTHER', 125); // how wide the other box should be in pixels, alter as required

Then in your main index.php find these lines:

 

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

That one controls the left box.

 

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

That one controls the right box.

 

Which ever one you want to change, in the code snippet change BOX_WIDTH to BOX_WIDTH_OTHER two places.

 

It's always a good idea to make a backup of any file before making any edits.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...