Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

product_info.php HTML alignment not working


jhande

Recommended Posts

Posted

I made a slight edit to my product_info.php file trying to fix an alignment issue, but it's gone nuts and has a mind of it's own. ohmy.gif

 

Here's the edited code:

<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
     	<tr><?php /*** Begin Header Tags SEO ***/ ?>
       	<td colspan="3" valign="top"><h1><?php echo $products_name; ?></h1></td>
</tr>
<tr>
 	<td width="*"> </td>
       	<td width="177" align="left"><span class="smallText"><?php echo $product_info['products_model']; ?></span></td>
       	<td width="175" align="right" valign="top"><h1><?php echo $products_price; ?></h1></td>
     	<?php /*** End Header Tags SEO ***/ ?></tr>
</table></td>

 

I put the products_name in a row above the products_model and products_price in hopes when a products name is "long" it won't upset the other two. Any other time it would work in a HTML file. For some reason it's ignoring the colspan=3 and pushing the row below over so it creates a third row. blink.gif

 

Here's an example of what it should look like - click here.

Here's an example of it messed up - click here.

 

 

sad.gif

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted

Never mind, brain fart cleared and I fixed it. tongue.gif

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Archived

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

×
×
  • Create New...