Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

center of oscommerce.gif


leechfreak

Recommended Posts

Posted

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

Posted

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

Posted

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!!

Archived

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

×
×
  • Create New...