Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Gap between boxes


Guest

Recommended Posts

Posted

I'm trying to put a gap between 2 boxes which i have got in the left column.

 

I have only got a category and whats new box so far and they have no gap between them so look like there joined together in my design.

 

I want to put a 10px gap in between is this possible?

 

I thought i would just need to change something in all the files under catalog similar to changing the width of the site where you have to change the table width on all the pages.

 

Can someone tell me where i can add either a blank cell above the new products cell or another way of acheiving this?

 

Thanks

Posted

need to see the problem to picture it...

 

if it's just a vertical gap, maybe add a <br> or two, otherwise css it with style="margin-bottom: 10px" ? or margin-top

one-click installation..

Dave's info

Posted

Site Here

 

This is the latest version of my site so far and its still got a long way to go.

 

As you can see on the left the boxes appear merged together but i want a white gap between them.

 

Which file do i need to add <br> to? i cant see where they would fit in the index.php file.

 

I have just found the column_left.php file and can see that my 2 boxes are in here.

 

I dont know much php but is there something i could put in the code below:

 

  if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
 } else {
include(DIR_WS_BOXES . 'categories.php');
 }
---------im thinking something needs to go here?????-----------------
 require(DIR_WS_BOXES . 'whats_new.php');


?>

 

Thanks

Posted

Try this

 

 

  if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
 } else {
include(DIR_WS_BOXES . 'categories.php');
 }

?>
</td>
<td>  </td>
<td>
<?php

 require(DIR_WS_BOXES . 'whats_new.php');
?>

Posted

I have added the suggestion and it works but the gap is bigger than expected. Please take another look to see what i mean.

 

I only added 1  

 

 

Is there another way?

 

Cheers again

Posted

If the gap is too big, you could either take away one of the   of possibly try <td height="5px"> or whatever space suits,leaving the non breaking spaces out. Or you could use cellspacing on the spare <td>.

Posted

Sorted.

 

Thank you for the help it's now working with the correct gap

Archived

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

×
×
  • Create New...