Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

making the banner in the center


vince2k2

Recommended Posts

Posted

i change the banner on my ship but i want the image in the center, hos do i do that i tryed this

 

 

<table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">

<tr class="header">

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

<td align="right" valign="bottom"></td>

</tr>

</table>

 

(taken from the header.php)

 

in red which i thought would make it goto the center but still nothing

 

 

any ideas

Posted
i change the banner on my ship but i want the image in the center, hos do i do that i tryed this

<table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">

<tr class="header">

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

<td align="right" valign="bottom"></td>

</tr>

</table>

 

(taken from the header.php)

 

in red which i thought would make it goto the center but still nothing

any ideas

 

You can try this,

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">
<td valign="middle"  ><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'banner.jpg', 'Console Place') . '</a>'; ?></td>
<td align="center" valign="bottom"></td>
 </tr>
</table>

If that does work please provide more info on what page you are adding this.

 

Greets Bert

Posted
still doesnt work the image is still on the left handside

 

On what page do you want the image centered ?

Archived

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

×
×
  • Create New...