Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problems with background


DiegoNunes

Recommended Posts

Hello.

 

In header.php, i create a new table, for my desgin. But when i add background image, this is no appears.

 

This code:

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

<tr background="bkheader.jpg">

<td height="108" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

</tr>

<tr bgcolor="#BEC8D1" background="bg_menu.gif">

<td width="32%" height="35"> </td>

<td width="68%" height="35"><div align="right"><?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>'; ?></div></td>

</tr>

</table>

 

In bold, you see files how background.

 

Url of e-commerce is: www.cliqinformatica.com/catalogo/

Link to comment
Share on other sites

<tr> tags cannot have an attribute "background". Set this in the <td> cell instead. You are better off using stylesheets to control this. They give you much greater flexibility with your background images.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...