leechfreak Posted November 24, 2009 Posted November 24, 2009 Hi all, I changed the oscommerce.gif into my own image, but I can;t get it to the center. Anybosy knows? This is the code I used: <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</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> </table> website
multimixer Posted November 24, 2009 Posted November 24, 2009 Try this <td align="center" valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> EDIT: just clicked on your link: The header is divided in 2 parts, left part displays the image, right part displays the account etc icons. If you want the image in the total page center, then you need to decide what to do with the icons. If you don't want them at all, just delete the right (second) <td></td> There are of course ways to have it all, but it depends on the final design you want. You could have a background (full) image in the header for example and use as the "oscommerce.gif" just the left part of this image My community profile | Template system for osCommerce - New: Responsive | Feedback channel
leechfreak Posted November 24, 2009 Author Posted November 24, 2009 Hi George, Thanks!, can you tell me how to delete the icons on the right? Thanks in advance, Marno I found it, it already was in your reply. Thanks!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.