Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Centering Additional Product Images in Product Description

Centering Additional Product Images in Product Description

Views: 504

Results 1 to 3 of 3
26 Jan 2012, 6:23 PM
#1
mvip avatar

mvip

New Zenner

Join Date:
Nov 2011
Posts:
17
Plugin Contributions:
0

Centering Additional Product Images in Product Description

I wanted to add more pictures of icons, etc. in the product description part of the product page, not the product images at the top

Adding this to the admin product page worked great:
<img src="images/your_nutrition_image.gif" alt="Nutrition Information" />

But I have another noob question:
How can I center this image? It is currently aligned to the left along with the description text. I just want to center the image, not the rest of the description text though.

I tried this, but it didn't work:
<img src="images/your_nutrition_image.gif" alt="Nutrition Information" align="middle" />

Would I have to change something on the stylesheet?

Your help is very much appreciated! :smile:

26 Jan 2012, 6:34 PM
#2
mvip avatar

mvip

New Zenner

Join Date:
Nov 2011
Posts:
17
Plugin Contributions:
0

Re: Centering Additional Product Images in Product Description

Sorry, it amazes me how much noobness I possess.

This centers the image:

<center><img src="images/your_nutrition_image.gif" alt="Nutrition Information" /></center>

:flex::clap:

26 Jan 2012, 6:39 PM
#3
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Centering Additional Product Images in Product Description

hard to tell what you need to do without seeing product page.

looks like you are adding image via description, if that is the case I would wrap the <img> tag with <center></center> tags

hope this helps

looks like we were typing at the same time