Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't get my header to center


Guest

Recommended Posts

Posted

I've changed the header.php but my header logo will not move.

 

Any ideas?

 

Edward

Posted
I've changed the header.php but my header logo will not move.

 

Any ideas?

 

Edward

 

Can you post the code you have for the logo? Basically if you have

 

align="center"

 

in the TD tag, it should centre it.

 

Martin

Posted

here's the code....

It looks ok to me but logo still not centered

 

Edward

 

<tr class="header">

<td valign="center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'mysite.jpg', 'mysite') . '</a>'; ?></td>

<td align="center" 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>

Posted

Hi Edward,

 

You have valign="center". You also need align="center" as the valign is vertical alignment in the cell and align is horizontal.

 

Martin

Posted

Well smack me with a stick and call me skippy.

 

 

It's the little things that really get ya.

 

 

Thanks

Posted

just for a next time valign="center" doesn't exist ... it's valign="middle"

 

pretty sure you know though and it was only a typo to start with in your post above ...

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted
just for a next time valign="center" doesn't exist ... it's valign="middle"

 

pretty sure you know though and it was only a typo to start with in your post above ...

 

Yes, copy and paste can be good AND bad!!! Thanks.

Archived

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

×
×
  • Create New...