Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cant centre Logo


sharp3ds

Recommended Posts

Hi everyone,

 

I have edited my header.php file to display my logo but the problem is it will not centre even though it is written in the code,

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo.jpg', STORE_NAME) . '</a>'; ?></td>

 

Any thoughts ?

Link to comment
Share on other sites

That may depend on the definition of your table. What are the setting for cellspacing and cellpadding?

 

You can also post a link if possible, so we can take a look.

 

sorry iv not uploaded it yet but heres the section of code i was refering to:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">
<td align="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo.jpg', STORE_NAME) . '</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>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...