Guest Posted September 27, 2006 Posted September 27, 2006 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
DeadDingo Posted September 27, 2006 Posted September 27, 2006 Just modify the Column_left file to have the gap (remember to back up the file first)
digbydo Posted September 27, 2006 Posted September 27, 2006 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
Guest Posted September 27, 2006 Posted September 27, 2006 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
Guest Posted September 27, 2006 Posted September 27, 2006 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'); ?>
Guest Posted September 27, 2006 Posted September 27, 2006 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
Guest Posted September 27, 2006 Posted September 27, 2006 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>.
Guest Posted September 27, 2006 Posted September 27, 2006 Sorted. Thank you for the help it's now working with the correct gap
Recommended Posts
Archived
This topic is now archived and is closed to further replies.