Image centering

images php coding issues or problems here.

Moderators: macek, egami, gesf

nickcook
New php-forum User
New php-forum User
Posts: 1
Joined: Sun Aug 12, 2012 8:02 pm

Image centering

Postby nickcook » Sun Aug 12, 2012 8:10 pm

Hey Guys.... I am new to php and I am building a shopping cart website. In it I have thumbnails to click on that then show the larger image. these are in a separate folder and show ok when 'click for larger image is pressed, but as is apparently normal, they show in a new window positioned at the top left corner and i really want them centred in the new window... just looks more professional... anyone any ideas.... here is the code for the image....

<table width="100%" border="0" cellspacing="0" cellpadding="15">
<tr>
<td width="19%" align="center" valign="bottom"><img src="inventory_images/<?php echo $id; ?>.jpg" width="140" height="140" alt="<?php echo $product_name; ?>" /><br />


<a href="inventory_images/<?php echo $id; ?>.jpg" >View Full Size Image</a></td>
<td width="81%" valign="top"><h3><?php echo $product_name; ?></h3>
<p><?php echo "$".$price; ?><br />
<br />
<?php echo "$subcategory $category"; ?> <br />



please be gentle with me... like I said, php is a new beast to me.....

My email is

nickcharliecook@hotmail.co.uk would really appreciate the help

sivakami
New php-forum User
New php-forum User
Posts: 17
Joined: Tue Sep 04, 2012 11:26 pm

Re: Image centering

Postby sivakami » Tue Sep 04, 2012 11:47 pm

yes


Return to “PHP coding => Images”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest