Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to center header image?


Guest

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...