Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Product info customisation

Product info customisation

Locked

Views: 709

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
11 Jun 2010, 11:00 AM
#1
joe3b avatar

joe3b

New Zenner

Join Date:
Nov 2009
Location:
London
Posts:
67
Plugin Contributions:
0

Product info customisation

Hello,

url: http://bit.ly/cLsq25

I'm trying to center the main product image inside "productInfoCenter".

The CSS I've used, which doesn't seem to center is as follows:

#productInfoCenter{
float:left;
width:275px;
margin-right: 25px;
padding: 0;
border: 1px solid #D5CAB2;
text-align:center;
}

Can anyone help me please?

Thanks.

11 Jun 2010, 11:38 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Product info customisation

I dont recall

#productInfoCenter

being a specified DIV ID in standard ZC code.

11 Jun 2010, 11:46 AM
#3
joe3b avatar

joe3b

New Zenner

Join Date:
Nov 2009
Location:
London
Posts:
67
Plugin Contributions:
0

Re: Product info customisation

That was my own defined div id.

I wanted it so that the main product image and the additional images were together.

11 Jun 2010, 11:48 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Product info customisation

Easiest way might be to change the red zero to 35px or so.

#productMainImage, #reviewsInfoDefaultProductImage, #productReviewsDefaultProductImage, #reviewWriteMainImage {
margin: 0 20px 10px 0 ;
}

If that messes up the others, just split #productMainImage into its own statement.

11 Jun 2010, 11:48 AM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Product info customisation

Did you code it into the** tpl_product_info_display.php** file?

11 Jun 2010, 11:52 AM
#6
joe3b avatar

joe3b

New Zenner

Join Date:
Nov 2009
Location:
London
Posts:
67
Plugin Contributions:
0

Re: Product info customisation

stevesh:

Easiest way might be to change the red zero to 35px or so.

#productMainImage, #reviewsInfoDefaultProductImage, #productReviewsDefaultProductImage, #reviewWriteMainImage {
margin: 0 20px 10px 0 ;
}

If that messes up the others, just split #productMainImage into its own statement.

Thanks, I'll give that a go and revert the results here.

11 Jun 2010, 11:54 AM
#7
joe3b avatar

joe3b

New Zenner

Join Date:
Nov 2009
Location:
London
Posts:
67
Plugin Contributions:
0

Re: Product info customisation

schoolboy:

Did you code it into the** tpl_product_info_display.php** file?

I coded the DIV ID "productInfoCenter" into stylesheet.css and placed the main images product and additional product images into <div id="productInfoCenter">

11 Jun 2010, 12:58 PM
#8
joe3b avatar

joe3b

New Zenner

Join Date:
Nov 2009
Location:
London
Posts:
67
Plugin Contributions:
0

Re: Product info customisation

I repositioned the main image as follows:

#productMainImage{
margin: 0 20px 10px 37.5px ;
}

I just need to make a note to change this if ever I change the main image size.

Thanks for all your help!