Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Info Page Layout is Messed Up


lsd_se

Recommended Posts

After I installed Firefox 3, the product info page in my site has become a little unarranged.

 

If you look at this page in Internet Explorer or Firefox 2, it looks fine, with the image to the right and the text to the left, but on equal levels

ie: text image

But if you look at it in Firefox 3, the image is still on the right, but the text is on the left, and below the image

ie: image

text

 

If anyone can figure out what the problem is in my coding any suggestions to fix this would be more then appreciated.

I'm planning on going live in a week and would like to get this fixed up as it's not too pretty

 

http://www.tunerlab.jp/product_info.php?cP...products_id=445

 

Thanks in advance for any suggestions you can offer!

Link to comment
Share on other sites

also, here is the bit of code that is in question:

 

<?php
   if (tep_not_null($product_info['products_image'])) {
?>
<table cellspacing="0" cellpadding="0" border="0" class="product">
<tr><td>
<table cellspacing="0" cellpadding="0" border="0">
<tr><td height="100%">
	<table cellpadding="0" cellspacing="0" border="0" align="right" class="prod_info" style="margin:0px 10px 0px 0px;">
		<tr><td class="pic" align="center"> <br style="line-height:1px;"><br style="line-height:9px;">



<?php /*  echo tep_draw_prod_bottom();  */?>

		</td></tr>
		<tr><td align="center">
<script language="javascript"><!--
document.write('<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
</noscript>
		</td></tr>
	</table>
	<table cellpadding="0" cellspacing="0" border="0">
		<tr><td style="vertical-align:middle; height:28px;"><em><?php echo $products_name; ?></em></td></tr>
	</table>

<div class="padd3"><?php echo stripslashes($product_info['products_description']); ?>
<br><br style="line-height:11px"></div>																	

															   </td></tr>

														</table>
													</td>
												</tr>
											</table>
<?php
   }
?>
<? /*  tep_draw_heading_bottom_2();  */?>
			  <table cellspacing="0" cellpadding="0" border="0" align="center">
			   <tr><td height="5"></td></tr>
			   <tr><td height="1" class="bg_gg"><?php echo tep_draw_separator('spacer.gif', '1', '1'); ?></td></tr>
			   <tr><td height="5"></td></tr>
			  </table>	
<? tep_draw_heading_top_2();?>

<?php
   $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");
   $products_attributes = tep_db_fetch_array($products_attributes_query);
   if ($products_attributes['total'] > 0) {
?>
<table class="sample">
<br>
 <tr>
             <td  align="center"><?php echo TEXT_PRODUCT_OPTION; ?></td>
      <td  align="center"><?php echo TEXT_PRODUCT_PRICE; ?></td>
      <td  align="center"><?php echo TEXT_PRODUCT_QUANTITY; ?></td>
<td class="main" align="center">Add To Cart</td>
 </tr>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...