Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

re-sizable table


pinbrook

Recommended Posts

Posted

I'd like to change the design of my site so that it is contained within a 100% table to fit on all screen resolutions.

 

Thus I need to split my header banner into 2.

 

This is the code that displays the banner

 

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'sslogo.gif', 'satin and spice') . '</a>'; ?></td>

 

I'm not sure how to split this cell into 2 columns 50% and place each image in each column in the centre

Posted

Hope this helps

 

<td valign="middle">

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

<tr>

<td width="50%" align="center">><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'sslogo1.gif', 'satin and spice') . '</a>'; ?></td>

<td width="50%" align="center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'sslogo2.gif', 'satin and spice') . '</a>'; ?></td>

</tr></table>

</td>

 

just replace the code which u gave with this

Archived

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

×
×
  • Create New...