Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need html table help


Recommended Posts

Hello,

 

I have been editing a recent oscommerce template purchase to fix some layout issues etc. Unfortunately, the template is old and the layout is coded with html tables instead of CSS, and though I do understand the basics of html tables, I'm less experienced in editing them since they are not used as often anymore. I need to move product titles below the image to make it more readable, and also to fix the layout. I have finally found the source code (I know you can copy it and click view source code, but it isn't actually in index.php as the address bar might suggest) so here it is:

 

 

echo '
        <td width=236 valign=top align=center>
         <table cellspacing=0 cellpadding=0 border=0> 
          <tr><td height=12></td></tr>

          <tr><td width=137 align=center>'.$product_contents[0].'</td>
           <td width=84 valign=top>
           <table cellspacing=0 cellpadding=0>
            <tr><td height=5></td></tr>
            <tr><td height=45 valign=middle>'.$product_contents[1].'</td></tr>
            <tr><td height=6></td></tr>

           </table>

 

(Note: This code is actually an html section within a .php file.)

 

I tried to make a new table row for the product tables by adding a <tr> tag like this:

<tr><td width=84 valign=top></tr>

It did put the title below the image, but messed up the layout for the whole page (except for the links on the left and top, which are in another file)

 

Here is the link to the page so you can see what it looks like.

[url]http://jewelrytailor.com/store/index.php/cPath/23_25[/url/

 

Thanks in advance for the help; I appreciate it. Any suggestions welcomed.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...