You are here: How to format text in between left and center (html inside of php). « HTML « IT news, forums, messages
How to format text in between left and center (html inside of php).

Posted by splashedwater on 01/31/07 21:19

Hi guys, I have a question which is kind of tricky.... I think. I was
wondering how to format text in between left and center. I have an
image (of a product) then under that a price. When I try to center the
text it goes slightly too far to the right (because my image is
slightly off center from my table). Does anyone know how to rememedy
this.

Here is the code,:

<code>
echo "<td border='0' height='168' valign='top' align='left'><a
href='view_print.php?pid=".$row['product_id']."'><img src='uploads/".
$row['image_name']."' alt='".$row['item_name']."'></a><br /><font
size='4'><b><div align='left'>Price: \$".$row['price']. " </div></
b></font></td>";
</code>


You probably have to know php or programming to understand this... but
basically image_name is the image then a <br> then the price which is
currently alligned to the left.

Does this make sense? If not I can clarify.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация