dsiew Posted August 8, 2008 Posted August 8, 2008 Hi Can anyone pls advice me how to get ride of the blank space on the side menu. I 'm using a IE I have trying to get ride of the space for many day but can 't. Appreciate anyone can help me. I have a screenshot attached
Guest Posted August 8, 2008 Posted August 8, 2008 I am sorry, I don't see a LOT of blank space on the ride side. I do see you have your site centered, which would place it in the center of the browser thereby increasing the amount of space on each side depending on the viewers monitor. I also see space at the bottom of your right column, which as you know is used for best-sellers, reviews and other boxes as they are required. If you have deleted the function of those box, you may want to fill the space by adding a custom box or image. Chris
♥geoffreywalton Posted August 8, 2008 Posted August 8, 2008 How about the black area between the categories title and the first category? Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
dsiew Posted August 9, 2008 Author Posted August 9, 2008 How about the black area between the categories title and the first category? That ' what I 'm saying... Why is there so much black area between the categories title and the first category? I will be have a lot more caterories soon and the whole blank space is pushing my category down further. Please advice?
dsiew Posted August 9, 2008 Author Posted August 9, 2008 I am sorry, I don't see a LOT of blank space on the ride side. I do see you have your site centered, which would place it in the center of the browser thereby increasing the amount of space on each side depending on the viewers monitor. I also see space at the bottom of your right column, which as you know is used for best-sellers, reviews and other boxes as they are required. If you have deleted the function of those box, you may want to fill the space by adding a custom box or image. Chris What I mean is the black area between the categories title and the first category? Why is there so much of unneccessary space there? Pls help....
jhande Posted August 9, 2008 Posted August 9, 2008 I'll bet a link to your site might prove useful so people can look at your code. But hey, what do I know?? :huh: - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
Guest Posted August 9, 2008 Posted August 9, 2008 DUH !.......ok, my bad...........I guess I shouldn't read posts after 11 hrs straight coding..........lol YES, please post your site URL so we can see it. Chris
dsiew Posted August 9, 2008 Author Posted August 9, 2008 DUH !.......ok, my bad...........I guess I shouldn't read posts after 11 hrs straight coding..........lol YES, please post your site URL so we can see it. Chris This is the link http://maomaopethouse.com.sg/index.php Thank you so much
Guest Posted August 9, 2008 Posted August 9, 2008 Well, it looks like you have corrected the problem. Looks good, Chris
dsiew Posted August 9, 2008 Author Posted August 9, 2008 Well, it looks like you have corrected the problem. Looks good, Chris Not yet you have to click on one item e.g Dogs
Guest Posted August 9, 2008 Posted August 9, 2008 In this part of your source code is <!-- body //--> <table border="0" width="701" cellspacing="0" cellpadding="0"> <tr> <td rowspan="2" width="144" valign="top"><table border="0" width="144" cellspacing="0" cellpadding="0"> <!-- left_navigation //--> Make sure you backup your files first. Not sure but rowspan="2" could be your problem. Remove that part.
dsiew Posted August 9, 2008 Author Posted August 9, 2008 In this part of your source code is <!-- body //--> <table border="0" width="701" cellspacing="0" cellpadding="0"> <tr> <td rowspan="2" width="144" valign="top"><table border="0" width="144" cellspacing="0" cellpadding="0"> <!-- left_navigation //--> Make sure you backup your files first. Not sure but rowspan="2" could be your problem. Remove that part. Sorry, can I know which file? Many thanks
dsiew Posted August 9, 2008 Author Posted August 9, 2008 Sorry, can I know which file? Many thanks I try remove it from index.php but still the same, pls help....
Guest Posted August 9, 2008 Posted August 9, 2008 I just looked at your index.php source and it still has rowspan="2". Did put it back? Maybe post the code for your categories box. Should be in catalog/includes/boxes/categories.php. The only other thing I see that may have nothing to do with anything is this <td rowspan="2" width="144" valign="top"><table border="0" width="144" cellspacing="0" cellpadding="0"> <!-- left_navigation //--> <script language="JavaScript"> function groomingservices(){ settings='width=800,height=600,location=no,directories=no,menubar=no,toolbar=no,status =no,scrollbars=yes,resizable=yes,fullscreen=no' PopupWin=window.open('grooming_services.html','PopupWin', settings); PopupWin.focus();} </script> <!-- categories //--> <tr> <td bgcolor="#000"> This part of that <script language="JavaScript"> function groomingservices(){ settings='width=800,height=600,location=no,directories=no,menubar=no,toolbar=no,status =no,scrollbars=yes,resizable=yes,fullscreen=no' PopupWin=window.open('grooming_services.html','PopupWin', settings); PopupWin.focus();} </script> Looks to be something for your menu. I'm not sure but maybe that needs to be inside of one of the <td> tags. Like I say though don't know if thats anything or not.
dsiew Posted August 9, 2008 Author Posted August 9, 2008 I just looked at your index.php source and it still has rowspan="2". Did put it back? Maybe post the code for your categories box. Should be in catalog/includes/boxes/categories.php. The only other thing I see that may have nothing to do with anything is this <td rowspan="2" width="144" valign="top"><table border="0" width="144" cellspacing="0" cellpadding="0"> <!-- left_navigation //--> <script language="JavaScript"> function groomingservices(){ settings='width=800,height=600,location=no,directories=no,menubar=no,toolbar=no,status =no,scrollbars=yes,resizable=yes,fullscreen=no' PopupWin=window.open('grooming_services.html','PopupWin', settings); PopupWin.focus();} </script> <!-- categories //--> <tr> <td bgcolor="#000"> This part of that <script language="JavaScript"> function groomingservices(){ settings='width=800,height=600,location=no,directories=no,menubar=no,toolbar=no,status =no,scrollbars=yes,resizable=yes,fullscreen=no' PopupWin=window.open('grooming_services.html','PopupWin', settings); PopupWin.focus();} </script> Looks to be something for your menu. I'm not sure but maybe that needs to be inside of one of the <td> tags. Like I say though don't know if thats anything or not. Even if I remove the rowspan it still won 't works? Below is the code for the box category <?php /* $Id: categories.php,v 1.25 2003/07/09 01:13:58 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ function tep_show_category($counter) { global $tree, $categories_string, $cPath_array; for ($i=0; $i<$tree[$counter]['level']; $i++) { $categories_string .= " "; } $categories_string .= '<tr><TD valign="middle" height="16" align="left" style="border-bottom:1px solid #FFFFFF; padding-left:5px;"><img src="images/marker_cat.gif" width="3" height="5" alt="" style="margin-right:5px;" /><a class="categories" href="'; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">'; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '<b>'; } // display category name $categories_string .= $tree[$counter]['name']; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '</b>'; } if (tep_has_category_subcategories($counter)) { $categories_string .= '->'; } $categories_string .= '</a>'; if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= '<span class="categories"> (' . $products_in_category . ')'; } } $categories_string .= '</td></tr>'; if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } ?> <!-- categories //--> <tr> <td bgcolor="#000"> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => '<div style="background-image:url(images/categories_bg.gif); border-bottom:1px solid #4985A0; width:136px; height:23px; padding-top:5px; padding-left:8px; color:#FFF; font:bold 14px Arial,Tahoma, Helvetica, sans-serif">'.BOX_HEADING_CATEGORIES); new infoBoxHeading($info_box_contents, false, false); ?> <?php $categories_string = ''; $tree = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $tree[$categories['categories_id']] = array('name' => $categories['categories_name'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $categories['categories_id']; } $parent_id = $categories['categories_id']; if (!isset($first_element)) { $first_element = $categories['categories_id']; } } //------------------------ if (tep_not_null($cPath)) { $new_path = ''; reset($cPath_array); while (list($key, $value) = each($cPath_array)) { unset($parent_id); unset($first_id); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); if (tep_db_num_rows($categories_query)) { $new_path .= $value; while ($row = tep_db_fetch_array($categories_query)) { $tree[$row['categories_id']] = array('name' => $row['categories_name'], 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } $parent_id = $row['categories_id']; if (!isset($first_id)) { $first_id = $row['categories_id']; } $last_id = $row['categories_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } tep_show_category($first_element); $info_box_contents = array(); $info_box_contents[] = array('text' => '<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" >'.$categories_string.'</table>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- categories_eof //-->
dsiew Posted August 9, 2008 Author Posted August 9, 2008 Even if I remove the rowspan it still won 't works? Below is the code for the box category <?php /* $Id: categories.php,v 1.25 2003/07/09 01:13:58 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ function tep_show_category($counter) { global $tree, $categories_string, $cPath_array; for ($i=0; $i<$tree[$counter]['level']; $i++) { $categories_string .= " "; } $categories_string .= '<tr><TD valign="middle" height="16" align="left" style="border-bottom:1px solid #FFFFFF; padding-left:5px;"><img src="images/marker_cat.gif" width="3" height="5" alt="" style="margin-right:5px;" /><a class="categories" href="'; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">'; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '<b>'; } // display category name $categories_string .= $tree[$counter]['name']; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '</b>'; } if (tep_has_category_subcategories($counter)) { $categories_string .= '->'; } $categories_string .= '</a>'; if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= '<span class="categories"> (' . $products_in_category . ')'; } } $categories_string .= '</td></tr>'; if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } ?> <!-- categories //--> <tr> <td bgcolor="#000"> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => '<div style="background-image:url(images/categories_bg.gif); border-bottom:1px solid #4985A0; width:136px; height:23px; padding-top:5px; padding-left:8px; color:#FFF; font:bold 14px Arial,Tahoma, Helvetica, sans-serif">'.BOX_HEADING_CATEGORIES); new infoBoxHeading($info_box_contents, false, false); ?> <?php $categories_string = ''; $tree = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $tree[$categories['categories_id']] = array('name' => $categories['categories_name'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $categories['categories_id']; } $parent_id = $categories['categories_id']; if (!isset($first_element)) { $first_element = $categories['categories_id']; } } //------------------------ if (tep_not_null($cPath)) { $new_path = ''; reset($cPath_array); while (list($key, $value) = each($cPath_array)) { unset($parent_id); unset($first_id); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); if (tep_db_num_rows($categories_query)) { $new_path .= $value; while ($row = tep_db_fetch_array($categories_query)) { $tree[$row['categories_id']] = array('name' => $row['categories_name'], 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } $parent_id = $row['categories_id']; if (!isset($first_id)) { $first_id = $row['categories_id']; } $last_id = $row['categories_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } tep_show_category($first_element); $info_box_contents = array(); $info_box_contents[] = array('text' => '<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" >'.$categories_string.'</table>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- categories_eof //--> Anyone, pls help...
Guest Posted August 9, 2008 Posted August 9, 2008 Change this part towards the top $categories_string .= " "; to $categories_string .= ""; And I still think you need to remove the rowspan="2". Try it and see.
dsiew Posted August 9, 2008 Author Posted August 9, 2008 Change this part towards the top $categories_string .= " "; to $categories_string .= ""; And I still think you need to remove the rowspan="2". Try it and see. Thank you so much Brian. I really appreciate your help.... Last but no least how how when I view from my laptop and my computer the background image is out of position? I have attact a screenshot.
dsiew Posted August 9, 2008 Author Posted August 9, 2008 Thank you so much Brian. I really appreciate your help....Last but no least how how when I view from my laptop and my computer the background image is out of position? I have attact a screenshot. When I mean is that when I view from my laptop the background image is out of position but when I look from my computer it looks ok
dsiew Posted August 9, 2008 Author Posted August 9, 2008 When I mean is that when I view from my laptop the background image is out of position but when I look from my computer it looks ok
dsiew Posted August 9, 2008 Author Posted August 9, 2008 When I mean is that when I view from my laptop the background image is out of position but when I look from my computer it looks ok Brian I have fixed it. Still I want to thanks for your help and the trouble you have go through with me for the pass couple of hours. Many thanks to you!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.