Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do you centre the header image?


jww103

Recommended Posts

Hi all, i'm having a bit of trouble centralising the header image. Can anyone see whats wrong with my code below in includes/header.php or suggest another solution?

 

<tr class="header">

<td valign "middle" align "center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'Gardening Essentials') . '</a>'; ?></td>

</tr>

Link to comment
Share on other sites

Try aligning the table like this

<table align="center">

<tr class="header">

<td valign "middle" align "center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'Gardening Essentials') . '</a>'; ?></td>

</tr>

</table>

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Try aligning the table like this

<table align="center">

<tr class="header">

<td valign "middle" align "center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'Gardening Essentials') . '</a>'; ?></td>

</tr>

</table>

 

that did the trick - thanks very much

Link to comment
Share on other sites

  • 11 months later...

Archived

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

×
×
  • Create New...