Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving right and left columns against edge of page


Guest

Recommended Posts

Hmm, obviously the website issues this arvo prevented the actual content of my thread to make it. :(

 

Here is what didn't make the original post: :)

 

==============================

 

I've successfully modified my main page such that the right and left columns (ie. that contain the various infoboxes) sit flush with the right and left page borders respectively.

 

To effect this modification I have altered the code in catalog/index.php in the appropriate areas. For example:

 

<!-- 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">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->

Where the table is defined, I've reduced the cellspacing and cellpadding to 0.

 

Anyhoo, I stupidly missed that fact that as soon as I go to, say, the log-in page the columns are back to their default positions.

 

Now, I could go and change all the relevant files, updating the table definitions as shown above, but this seems a rather longwinded solution.

 

Could someone please advise whether:

  • A contribution exists to do this - I couldn't find anything suitable and I don't want to use templates
  • It is possible to achieve via an additional class or similar in CSS, or
  • Modifying ALL files directly is best?

Many thanks. :)

Link to comment
Share on other sites

I've successfully modified my main page such that the right and left columns (ie. that contain the various infoboxes) sit flush with the right and left page borders respectively.

 

To effect this modification I have altered the code in catalog/index.php in the appropriate areas. For example:

 

<!-- 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">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->

Where the table is defined, I've reduced the cellspacing and cellpadding to 0.

 

Anyhoo, I stupidly missed that fact that as soon as I go to, say, the log-in page the columns are back to their default positions.

 

Now, I could go and change all the relevant files, updating the table definitions as shown above, but this seems a rather longwinded solution.

 

Could someone please advise whether:

  • A contribution exists to do this - I couldn't find anything suitable and I don't want to use templates
  • It is possible to achieve via an additional class or similar in CSS, or
  • Modifying ALL files directly is best?

Many thanks. :)

 

i think the answer to this question is that, sadly, the only way to do it is to edit every file. something i am in the process of doing myself.

Link to comment
Share on other sites

i think the answer to this question is that, sadly, the only way to do it is to edit every file. something i am in the process of doing myself.

Alas! it seems you might be right. Oh well, better get to it then. :)

 

Thanks for your reply mate. :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...