stab Posted April 23, 2006 Posted April 23, 2006 On what line (in the Header.php file) and what do I insert to make the "oscommerce"logo (which I've replaced with my own) appear on the center of a page (horizontally) Thanks......
cudd1es Posted April 23, 2006 Posted April 23, 2006 About lines 55-60 Where it says <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?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> This is the entire top line of the page. To make it centered, Change it to the following. <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td width="25%"> </td> <td valign="middle" align="center" width="40%"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'OSCommerce') . '</a>'; ?></td> <td align="right" valign="bottom" width="25%"><?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> The 3 changes are... <td width="25%"> </td> added near the beginning to compensate for 3 columns. Also the Logo section changed to align="center" and width="25% in the 2nd <td> width="25%" added to the last <td>
stab Posted April 23, 2006 Author Posted April 23, 2006 Thank you thank you Thank you thank you :thumbsup: :) I'm getting closer to the design of my webshop by the minute ,thanks to this forums (and the base of oscommerce offcourse)
cudd1es Posted April 23, 2006 Posted April 23, 2006 NP.... Just waiting for a reply to my problem so reading through.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.