Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to center the "oscommerce.gif


stab

Recommended Posts

Posted

On what line (in the Header.php file) and what do I insert to make the "oscommerce"logo (which I've replaced with my own)

appear on the center of a page (horizontally)

 

Thanks......

Posted

About lines 55-60

 

Where it says

 

<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 . '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>

 

This is the entire top line of the page.

 

To make it centered, Change it to the following.

 

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

<tr class="header">

<td width="25%"> </td>

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

<td align="right" valign="bottom" width="25%"><?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>

 

 

The 3 changes are...

 

<td width="25%"> </td> added near the beginning to compensate for 3 columns.

 

Also the Logo section changed to align="center" and width="25% in the 2nd <td>

 

width="25%" added to the last <td>

Posted

Thank you thank you Thank you thank you :thumbsup: :)

 

I'm getting closer to the design of my webshop by the minute ,thanks to this forums (and the base of oscommerce offcourse)

Archived

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

×
×
  • Create New...