Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Center Header logo problem??


Guest

Recommended Posts

Hi All,

 

I hope someone can assist me.

 

I am trying to get my new header logo to be centered, and I figure all I need to do is change the header.php file but it is already set as;

 

<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 . 'tcf.gif', 'Tall Cedars Farm') . '</a>';

 

Any ideas?? Many thanks

 

Also whilst I am here, I really would love to use a tiled body background in both the header and the main section, any ideas?? Thanx!!

 

Cheers

Mark

Link to comment
Share on other sites

Try this:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">
       <td valign="middle" width="96%" align="center"> 
           <?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="4%"> 
           <?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>

 

All I did was decrease the space taken by the account/cart buttons to 4% which left 96% of the line for your heading.

 

Hope it helps.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...