Forums / Templates, Stylesheets, Page Layout / Move product image on product display

Move product image on product display

Locked

Views: 1,722

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
17 Sep 2007, 7:16 PM
#1
simples14 avatar

simples14

New Zenner

Join Date:
Sep 2007
Posts:
4
Plugin Contributions:
0

Move product image on product display

Hi guys,

Here is a page from my site under contruction:

http://www.securitybestbuy.com/store/index.php?main_page=product_info&cPath=23_24&products_id=14

I would like to move the image to the right of the description, rather than where is it by default on the left. I only want to do this so that if the description is in two parts (like that page) the paragraph and table are lined up.

Is this possible?

17 Sep 2007, 9:05 PM
#2
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Re: Move product image on product display

Hello, here's something you can try.

Find 'tpl_modules_main_product_image.php' in the templates directory and copy it to your custom folder. Look for the entry id="productMainImage" and change this to id="image"

Add the following to your stylesheet:

#image {float:right;
padding-top: 1em;
padding-bottom: 1em;
}

Upload and test.

Patrick

17 Sep 2007, 9:25 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Move product image on product display

What's the purpose of changing the very specific #productMainImage to #image?
You will achieve the exact same results by just styling #productMainImage.

Also, if your only concern is keeping the parts of the description together and to the right of the image, you can give #productDescription a padding-left: 160px; or whatever you want.

18 Sep 2007, 3:17 AM
#4
simples14 avatar

simples14

New Zenner

Join Date:
Sep 2007
Posts:
4
Plugin Contributions:
0

Re: Move product image on product display

I just added "float: right" to the CSS....

man I can't believe I missed that.