Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Align Additional Images

    Quote Originally Posted by julie.t View Post
    I am also having trouble getting the additional images to line up horizontally. I have moved them right underneath the main image and they are going down in a row instead of in columns. I have a stylesheet just for this page.

    #productAdditionalImages {
    clear:both;
    margin:0pt auto;
    text-align:center;
    width:100%;
    }
    .additionalImages {
    float:left;
    margin:0pt auto 18px;
    padding:0pt;
    text-align:center;
    width:100%;
    }

    .additionalImages img{
    border:1px dashed #C5CEA5;
    padding: 5px;
    }

    I have tried most of the fixes posted here but still no luck. If someone could take a look that would be great. Here is a link to the page.

    Hope you can help
    Ok, the biggest issue is that in your main stylesheet you changed .back from:

    Code:
    .back {float:left;}
    to

    Code:
    .back {clear:both;}
    Now, the product additional images uses .back to make it float left.

    But if you change it .back back to the original, it messes up the rest of your layout; I'm guessing you changed a lot.

    So, instead, add this to your css (the main stylesheet, or your extra one, doesn't matter):

    Code:
    #productAdditionalImages .back {clear:none!important;float:left;}
    and then change this (in your main stylesheet):

    Code:
    .buttonRow back, .buttonRowforward, #cartAdd, #productTellFriendLink,  #productAdditionalImages, .imgLinkAdditional        {
            margin-left: auto; margin-right: auto; padding: 20px;
    
         }

    to this:

    Code:
    .buttonRow back, .buttonRowforward, #cartAdd, #productTellFriendLink,  .imgLinkAdditional        {
            margin-left: auto; margin-right: auto; padding: 20px;
    
         }

  2. #12
    Join Date
    Nov 2006
    Posts
    29
    Plugin Contributions
    0

    Default Re: Align Additional Images

    Thank you Jade! I really appreciate your help. It worked great.

    One last question - How do I get the images closer together?

  3. #13
    Join Date
    Aug 2005
    Location
    SF Bay Area, California, USA
    Posts
    89
    Plugin Contributions
    0

    Default Re: Align Additional Images

    I wanted to cozy-up my additional images in the row. By default, if there were two additional images, there was way too much room between them. The postings above got me looking in the right places, which then led me to notice some settings on the additional_images.php in the includes/modules/ directory.

    In additional_images.php, I changed the default:

    if ($num_images) {
    $row = 0;
    $col = 0;
    if ($num_images < IMAGES_AUTO_ADDED || IMAGES_AUTO_ADDED == 0 ) {
    $col_width = floor(100/$num_images);
    } else {
    $col_width = floor(100/IMAGES_AUTO_ADDED);
    }


    to:

    if ($num_images) {
    $row = 0;
    $col = 0;
    if ($num_images < IMAGES_AUTO_ADDED || IMAGES_AUTO_ADDED == 0 ) {
    $col_width = floor(44/$num_images);
    } else {
    $col_width = floor(44/IMAGES_AUTO_ADDED);
    }


    The 100 assignment makes one additional image use 100% of the allotted space, 50% for two additional images, etc.

    Changing this to 44 makes a single image use 44% of the space, two images each use 22%, etc.

    See a sample here:
    http://www.bhjdynamics.com/index.php...products_id=59

    Cheers,
    chrx

  4. #14
    Join Date
    Aug 2005
    Location
    SF Bay Area, California, USA
    Posts
    89
    Plugin Contributions
    0

    Default Re: Align Additional Images

    Forgot to mention, the flaw here...

    I am only expecting to have a maximum of 2 additional images per item, so this works well in my case. More items will eventually make the images run over each other, as they are only allowed 44% of the width of the page to display, so this will not work as well if you have more additional images to show.

    If there is a more fool-proof way to make the images closer and flush-left (without changing the text alignment), I'm open to suggestions!

    Cheers,
    chrx

  5. #15
    Join Date
    Sep 2006
    Location
    Australia
    Posts
    80
    Plugin Contributions
    0

    Default Re: Align Additional Images

    I don't know if this is possible, but I want to align the additional images in line with the main image in a column down the left hand side, with the product info text wrapped alongside.

    I have currently set up to have just 1 additional image display & changed my tpl_product_info_display so the additional images are positioned below the main image, but I can't get the text to wrap around them.

    Example here:
    http://www.wiredforfibre.com.au/stor...&products_id=1

    Katie

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Additional Images Vertical Align Issue
    By jeanjeanitaly in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Sep 2011, 05:11 PM
  2. additional product images don't align
    By varnco in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 14 Aug 2009, 04:15 PM
  3. Align - Attributes and additional images in row
    By aussieny in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Apr 2009, 03:40 AM
  4. Vertical align additional images
    By ivanc in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Feb 2009, 02:10 AM
  5. Additional images to align left
    By Shelleym in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Jan 2009, 01:42 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