Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Increase spacing


JonoB

Recommended Posts

How do I increase the spacing between the infoboxes in column_left (i.e. so that there is more of a gap between each infobox)??

 

I have tried adding a <br> tag between each require statement, but that throws up error messages....

 

Any help appreciated!

Link to comment
Share on other sites

I think you need to place the above table row code in the actual box code.

 

For example to add a row with a <br> at the end of the information box you would

edit the

 

./catalog/includes/boxes/information.php file

 

and add the

 

<tr><td> <br></td></tr>

 

just before the

 

<!-- information_eof //-->

 

Again not tested but should work

Link to comment
Share on other sites

increase the spacing between the infoboxes in column_left

 

Open ../catalog/index.php (after you made a back-up).

 

Look for these lines (at about 61):

 

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><!-- de li. td = nav table// -->

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

<!-- 2= vert space between the boxes // --> <!-- left table, 1ste page // -->

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table>

</td>

<!-- body_text //-->

 

Change the cellpadding="2" to become "10" (or anything else you like):

 

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><!-- de li. td = nav table// -->

<table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="10">

<!-- 2= vert space between the boxes // --> <!-- left table, 1ste page // -->

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table>

</td>

<!-- body_text //-->

 

Look for other padding="2" at about line 422, on the same page and change that value for the other (2nd, 3rd, etc.) pages in your site.

 

....

Next do the same in the following pages:

product_reviews_info.php , shopping_cart.php , advanced_search.php , shipping.php, conditions.php, contact_us.php , account.php , account_history.php ,account_edit.php , address_book.php , account_password.php ,account_newsletters.php ,account_notifications.php ,account_history_info.php , products_new.php , logoff.php

 

Note:

There might even be more pages that need adjustment.

With an appropriate editor you'll just have to find:

padding="2" and <!-- left_navigation //-->

and see if the page needs adjusting.

 

After hat check the lay-out of yr shop :-)

"If you're working on something new, then you are necessarily an amateur."

Link to comment
Share on other sites

  • 10 months later...
How do I increase the spacing between the infoboxes in column_left (i.e. so that there is more of a gap between each infobox)??

 

I have tried adding a <br> tag between each require statement, but that throws up error messages....

 

Any help appreciated!

 

There's an easy way to increase spacing between infoboxes via css.

 

Open catalog/stylesheet.css with your favorite text editor, find .infoBox, add

margin-bottom: 10

before } under .infoBox. Obviously, you may change the figure "10" to whatever you feel comfortable.

 

No other changes needed.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...