Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adjusting Left Hand and Right Hand Column Widths


James Ecker

Recommended Posts

I am wondering how to adjust the width of the left and right columns. I would like to do this without using html on each individual page. It looks like right now the values are being pulled in with php coding...but I've been unable to locate the definition for this.

 

Thanks!

Link to comment
Share on other sites

if u want to have difrent Width to left/right column:

(backup: application_top.php and index.php!)

 

open: /includes/application_top.php

 

find:

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

 

add afther it:

 

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

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

 

wher xxx = your custome width

 

next go to index.php and find:

 

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

 

Replace whit:

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

 

find:

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

 

replace whit:

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

 

credit: Dimitri's, HelleM, JoeyM

http://www.oscommerce.com/community/contri...h,column+widths

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...