jsmith2 Posted May 13, 2008 Posted May 13, 2008 Hi, I'm trying to make the body of my table fit between the buttons, but its 100% of the header, or footer. If you need me to paste any of my codes let me know. please check out the link. http://darkseedclothing.com/
Guest Posted May 13, 2008 Posted May 13, 2008 Am not too sure if I get what you mean but you could try doing the following: Open all your files in your catalog folder, for example index.php, checkout_shipping.php and reviews.php etc. Find the following code: <table border="0" width="100%" cellspacing="3" cellpadding="3"> Replace that code with the following: <table border="0" width="100%" cellspacing="0" cellpadding="3" class="maintables" align="center"> Now open stylesheet.css and add the following code but change the 100% to what you need it to be: .maintables { width: 100%; }
Guest Posted May 13, 2008 Posted May 13, 2008 Evan easier open up catalog/includes/header.php and add right before the first <table> <table border="0" width="your_width" cellpadding="3" cellspacing="0" class="maintables" align="center"> <tr> <td> Then open catalog/includes/footer.php add right after the closing ?> </td> </tr> </table> Then in catalog/stylesheet.css add .maintables { define your styles here; }
jsmith2 Posted May 13, 2008 Author Posted May 13, 2008 Evan easier open up catalog/includes/header.php and add right before the first <table> <table border="0" width="your_width" cellpadding="3" cellspacing="0" class="maintables" align="center"> <tr> <td> Then open catalog/includes/footer.php add right after the closing ?> </td> </tr> </table> Then in catalog/stylesheet.css add .maintables { define your styles here; } It's still not bringing in the content where I want it too, I want everything below the menu to be centered, where the sides of the menus are.
jsmith2 Posted May 13, 2008 Author Posted May 13, 2008 It's still not bringing in the content where I want it too, I want everything below the menu to be centered, where the sides of the menus are. Here's my code from <start> <!-- start --> <table border="0" width="800px" cellpadding="3" cellspacing="0" class="maintables" align="center"> <tr> <td> <table cellspacing="0" cellpadding="0" border="0" style="width:100px" align="center"> <tr></tr> <div align="center"><strong> <?=BOX_HEADING_SHOPPING_CART?> </strong> <strong><a href="<?=tep_href_link('shopping_cart.php')?>"> <?=$cart->count_contents()?> <br /> <?=BOX_SHOPPING_CART_EMPTY?> </a></strong><br /> </div> <tr> <td width="10" height="145" class="header"><table width="0" border="0" cellpadding="0" cellspacing="0" > <tr> <td height="85"><br style="line-height:24px"> <a href="<?=tep_href_link('index.php')?>"><?=tep_image(DIR_WS_IMAGES.'logo.jpg')?></a></td> <td height="85"> </td> <td width="1" height="85"></td> <td height="85"></td> <td height="85"> </td> <td height="85"><?=tep_image(DIR_WS_IMAGES.'')?><br></td> <td height="85"></td> <td height="85"><br style="line-height:24px"> <a href="<?=tep_href_link('shopping_cart.php')?>"><?=tep_image(DIR_WS_IMAGES.'')?></a><br></td> <td height="85"> </td> </tr> <tr> <td width="753" height="60" colspan="9"> <img src="/1-home_02.gif" width="175" height="49"><a href="<?=tep_href_link('index.php')?>"><?php echo Tep_Image_Button('home.gif')?></a><a href="<?=tep_href_link('products_new.php')?>"><?php echo Tep_Image_Button('shop.gif')?></a><a href="<?=tep_href_link('specials.php')?>"><?php echo Tep_Image_Button('specials.gif')?></a><a href="<?=tep_href_link('account.php')?>"><?php echo Tep_Image_Button('account.gif')?></a><a href="<?=tep_href_link('contact_us.php')?>"><?php echo Tep_Image_Button('contactus.gif')?></a><img src="right_08_08.gif" width="83" height="49"><br> </td> </tr> </table> <!-- end --> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="1" width="50" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="1" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td> </tr> </table> <?php } ?> <!-- start --> </td> </tr> <tr> <td width="753" height="540"> <!-- end -->
usernamenone Posted May 13, 2008 Posted May 13, 2008 You have probably hacked some code from your template and tried to remove some images from the header but you have left partial code that needs to be cleaned up. <td height="85"><?=tep_image(DIR_WS_IMAGES.'')?><br></td> <td height="85"></td> <td height="85"><br style="line-height:24px"> <a href="<?=tep_href_link('shopping_cart.php')?>"><?=tep_image(DIR_WS_IMAGES.'')?></a><br></td> <td height="85"> </td>
jsmith2 Posted May 13, 2008 Author Posted May 13, 2008 You have probably hacked some code from your template and tried to remove some images from the header but you have left partial code that needs to be cleaned up. <td height="85"><?=tep_image(DIR_WS_IMAGES.'')?><br></td> <td height="85"></td> <td height="85"><br style="line-height:24px"> <a href="<?=tep_href_link('shopping_cart.php')?>"><?=tep_image(DIR_WS_IMAGES.'')?></a><br></td> <td height="85"> </td> Where does this go?
usernamenone Posted May 13, 2008 Posted May 13, 2008 it does not go anywhere, it is part of the code you pasted. You must have or tried to remove images but left snips of code behind. Restore you header to the original template code and work forward from there.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.