Guest Posted September 7, 2003 Posted September 7, 2003 How can I center header image?? It stays on the left side, while should be centered. Thanks, Janika
Guest Posted September 7, 2003 Posted September 7, 2003 In header.php you have something that looks like this: <td valign="middle" align="center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'oscommerce') . '</a>'; ?></td> I can't remember whether the align is just not there or is set to "left" in the original file, but you have to change it so that it says align="center" after the valign="middle" as above.
amoun Posted September 8, 2003 Posted September 8, 2003 You may want to delete the second cell.?? here's my code Roger <tr> <!-- class="header" --> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'ecokidzheader1.gif', 'E c o K i d z') . '</a>'; ?></td> <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT). '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> </tr> facts invariably distort the truth
Guest Posted September 8, 2003 Posted September 8, 2003 Oh yeah - I forgot about that. If you delete that bunch of code, it gets rid of those three little pictures on the right.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.