Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do you centre the header image?


jww103

Recommended Posts

Posted

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>

Posted

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

Posted
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

  • 11 months later...
Posted
that did the trick - thanks very much

 

HEY THATS EXCELLENT! THANKS! There are a few people having the same issue, I will lead them to this post.

Archived

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

×
×
  • Create New...