Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I want the images to have a snug fit.


garrityplus

Recommended Posts

Posted

example.gif

right now, my website has the images seperated from the bar as seen above. I want it so the image sits snug on the blue bar so you don't see the space.

Can someone help me please?

Posted

Without seiing the html you used for this, no.

If this in contained inside 1 table you could try setting the cellpadding and cellspacing attributes to zero.

Trust me, I'm an Accountant.

Posted

And valign="bottom" for the tabs cells (<td>) will help :)

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

Holy cow!

 

If you are struggling with this, then you need to go buy a nice HTML book and brush up on it.

 

Make sure, if you have substituted the header background image for a seperate image, that you havent created spacers somewhere along the line.

If you have, for instance, used Dreamweaver or something similar, the bugger does have a tendency to add spacers for you. This might cause your header.php to have more <tr> & <td> than you need, and will push out your images all over the place.

 

CC.

Posted

valign is set as the cell padding and spacing is at zero too already. I am using dreamweaver, but haven't used the debugger yet.

 

What else should i try?

Posted

i replaced the store name with asktriks. I just want to keep this thing private unless i open. Thanks for all your help

 

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

 <tr class="header">

   <td valign="middle"><?php echo tep_image(DIR_WS_IMAGES . 'elitgo.gif', '****** Online Store'); ?></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, '', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>   <html>

 <a href="https://www.******.com/catalog/account_history.php" TARGET="_self"><img src="/catalog/images/header_orderstatus.gif" border="0"> <a href="http://www.******.com/forums/" AREA SHAPE="shape" COORDS="550,400" HREF="http://www.******.com/forums/" TARGET="_blank"><img src="/catalog/images/header_forums.gif" border="0"></a>

 </html></td>

Posted

Is the code you posted correct??

 

Can't see a closing </table> tag and you have a </html> mixed in there and an area shape as well :(

 

If Dreamweaver is responsible for this I'd give it a good slapping. :)

 

When you created it in dreamweaver did it look Ok?

 

I'm assuming the blue bar is part of stock oscommerce if so your going to have to work a bit more to get them snug as this is drawn in a different table.

Trust me, I'm an Accountant.

Posted

Its in includes/header.php

 

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

 <tr class="headerNavigation">

   <td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

   <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

 </tr>

</table>


Trust me, I'm an Accountant.

Archived

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

×
×
  • Create New...