Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Box-Width individually


lira-con

Recommended Posts

Hello,

 

I changed the width of left-boxes (categories etc) in the application_top.php by redefining var define('BOX_WIDTH', 200).

 

My problem is that the right box now also expanding to 200px. I looked in nearly all the php-files, but can not find, how to perform individual width of left side and right side.

 

thanks for feedback.

 

michael

Link to comment
Share on other sites

In the index file, it calls for box width like this:

    <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 //-->

You'd have to modify it so it isn't calling for box width for each. This is repeated for column right down lower in the file. Take out the <......> reference and use html. Alternately, you could define a second set like BOX_LEFT_WIDTH and BOX_RIGHT_WIDTH but it would be more involved.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...