Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with a simple table


analli

Recommended Posts

Posted

I have a simple table created as part of my index.php. The way the code is below there is a center aligned graphic with some text beneath it. What would I have to do to this code to have the graphic on the left side (approx. the left one fifth) and the text on the right side (approx. the right four fifths) of the same line? In other words next to each other rather than one on top of the other.

 

<TABLE BORDER="0" width="100%" cellpadding="1" CELLSPACING="2"><TR align="center"><td class="main" align="center"><a href="http://www.pcas.ca/about_us.php">' . tep_image(DIR_WS_IMAGES . 'zaon/stardealer.jpg') . '</a><br><br>

<a href="http://www.pcas.ca/about_us.php"><b><i>"We believe it\'s about more than just price. Our expertise of and dedication to PCAS have made us <u>THE</u> known and proven PCAS authority. And our customer service is unparallelled. That said, our prices simply can\'t be beaten!"</b> - Anthony Nalli, President</i><br><br></TD></TR></a></TABLE>

 

Appreciate it!

 

Anthony

Posted

following code should solve the issue. using the powerful css.

what I've changed is in bold. if u decide to put he image on the right change the value of "float" to "right".

 

 

<TABLE BORDER="0" width="100%" cellpadding="1" CELLSPACING="2">

<TR align="center">

<td class="main" align="center">

<a href="http://www.pcas.ca/about_us.php">

<span style="float:left;"><?php echo tep_image(DIR_WS_IMAGES . 'zaon/stardealer.jpg') ; ?></span>

</a>

 

<a href="http://www.pcas.ca/about_us.php"><b><i>"We believe it\'s about more than just price. Our expertise of and dedication to PCAS have made us <u>THE</u> known and proven PCAS authority. And our customer service is unparallelled. That said, our prices simply can\'t be beaten!"</b> - Anthony Nalli, President</i><br><br></TD></TR></a></TABLE>

Santa's little freelancer

Posted

Thanks for the help. Unfortunately I get the following error:

 

Parse error: syntax error, unexpected T_STRING in /home/..../includes/languages/english/index.php on line 109

Posted

I tested this and it works in a similarly created situation but let's clean it up a little:

 

<TABLE BORDER="0" width="100%" cellpadding="1" CELLSPACING="2">
<TR align="center">
<td class="main" align="center">
<a href="http://www.pcas.ca/about_us.php">
<span style="float:left;">
<?php echo tep_image(DIR_WS_IMAGES . 'zaon/stardealer.jpg');  ?>
</span>
<b><i>
"We believe it\'s about more than just price. Our expertise of and dedication to PCAS have made us 
<u>THE</u> known and proven PCAS authority. And our customer service is unparallelled. 
That said, our prices simply can\'t be beaten!"
</b> - Anthony Nalli, President
</i>
</a>
</TD>
</TR>
</TABLE>
<br><br>

 

if that still gives you trouble we can take out the php part and code it in in html:

 

<TABLE BORDER="0" width="100%" cellpadding="1" CELLSPACING="2">
<TR align="center">
<td class="main" align="center">
<a href="http://www.pcas.ca/about_us.php">
<span style="float:left;">
<img src="images/zaon/stardealer.jpg" width="77" height="71" border="0" alt="">
</span>
<b><i>
"We believe it\'s about more than just price. Our expertise of and dedication to PCAS have made us 
<u>THE</u> known and proven PCAS authority. And our customer service is unparallelled. 
That said, our prices simply can\'t be beaten!"</b> - Anthony Nalli, President</i>
</a>
</TD>
</TR>
</TABLE>
<br><br>

 

 

make sure you copy and paste into the right section. also double check the quotation marks.

hope this helps a fellow country man :thumbsup:

Santa's little freelancer

Posted

Thanks Nimz. The first one didn't work but the second one did. Now that it works technically I need to see if I can make it work design-wise. Back to me!

 

Thx again.

 

A

Posted

any time man.

I saw your site. it looks good and packed with info

just to give you a head's up you got some images on th emain page that are not showing up,

name of the file is checkout_bullet.gif

Santa's little freelancer

Posted
any time man.

I saw your site. it looks good and packed with info

just to give you a head's up you got some images on th emain page that are not showing up,

name of the file is checkout_bullet.gif

 

Thanks for the heads up. Nothing looks as lame as a site with dead links or missing images. I've fixed it, though I don't know what the heck happened!

 

I'm trying to make sure I have plenty of good content without making it seem to cluttered.

 

Thanks again.

 

Anthony

Archived

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

×
×
  • Create New...