Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2009
    Location
    London
    Posts
    64
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: Product info customisation

    I dont recall

    #productInfoCenter

    being a specified DIV ID in standard ZC code.
    20 years a Zencart User

  3. #3
    Join Date
    Nov 2009
    Location
    London
    Posts
    64
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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.

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: Product info customisation

    Did you code it into the tpl_product_info_display.php file?
    20 years a Zencart User

  6. #6
    Join Date
    Nov 2009
    Location
    London
    Posts
    64
    Plugin Contributions
    0

    Default Re: Product info customisation

    Quote Originally Posted by stevesh View Post
    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.

  7. #7
    Join Date
    Nov 2009
    Location
    London
    Posts
    64
    Plugin Contributions
    0

    Default Re: Product info customisation

    Quote Originally Posted by schoolboy View Post
    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">

  8. #8
    Join Date
    Nov 2009
    Location
    London
    Posts
    64
    Plugin Contributions
    0

    Default 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!

 

 

Similar Threads

  1. Special Product (Customisation)
    By fe1lho in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 16 Sep 2010, 04:47 PM
  2. product quantity customisation
    By bradut in forum General Questions
    Replies: 1
    Last Post: 7 Mar 2010, 09:07 AM
  3. Product Listing Customisation
    By ranganathanmca in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Jul 2009, 04:26 PM
  4. Product Listing Customisation
    By mattys in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 7 Apr 2009, 08:07 AM
  5. Product customisation. Help?????
    By Nick1973 in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 6 Mar 2009, 10:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg