shanebevan Posted June 7, 2009 Posted June 7, 2009 Hello everyone. I'm hoping someone can help me figure out why the boarders are missing from around the Categories and only 3 boarders are around the mindsparx specials box i installed on the main page. I've spent all day trying to put them in but can't figure it out. i hope some one can help. also can you let me know what you think of my site. Many thanks
Nullachtfuffzehn Posted June 7, 2009 Posted June 7, 2009 HArd to say what borders you are talking of, since there's no link to your shop in your post. Even harder to tell you what we think about it....
shanebevan Posted June 7, 2009 Author Posted June 7, 2009 Sorry here's the link www.universalofficesolutions.co.uk
spooks Posted June 7, 2009 Posted June 7, 2009 correct errors in your html & things will be better, ie u have class="box_outline3 border=" for the table!! Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
shanebevan Posted June 8, 2009 Author Posted June 8, 2009 Thanks spooks i took out the box_outline3 border and got the boarders, what do you think of the code? does it look ok or would you make any changes to it?
shanebevan Posted June 8, 2009 Author Posted June 8, 2009 Thanks spooks i took out the box_outline3 border and got the boarders, what do you think of the code? does it look ok or would you make any changes to it? Not sure how to get all the boarders to line up, here is the code for the Categories part that not lining up. any one have an idea whats wrong? <?php /* $Id: new_products.php,v 1.34 2003/06/09 22:49:58 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- main_categories - EM-STUDIO.info//--> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_CATEGORIES ); new infoBoxHeading($info_box_contents, true, false); $mc_counter = 0; $mc_col = 4; $result = tep_db_query("SELECT * 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 "); echo '<table border="1" cellspacing="5" cellpadding="0" width="100%" bgcolor="#FFFFFF">'."\n"; while($data = tep_db_fetch_array($result)){ if($mc_counter == 0){ echo '<tr>'."\n"; } $width = 100/$mc_col; echo '<td width="'.$width.'%" align="center" class="smallText" ><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_path($data[categories_id])) . '">' . tep_image(DIR_WS_IMAGES . $data['categories_image'], $data['categories_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br>'.$data['categories_name'].'</td>'."\n"; $mc_counter = $mc_counter+1; if($mc_counter == $mc_col){ echo '</tr>'."\n"; $mc_counter = 0; } } echo '</table>'."\n"; ?> <!-- main_categories_eof //-->
Recommended Posts
Archived
This topic is now archived and is closed to further replies.