Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    58
    Plugin Contributions
    0

    Default layout settings for additional images

    i have figured out why the additional images were not showing up. also found why the additional images box width was fixed to a certain px and also figured out how to repeat the background image. i'm still guessing but the last thing i need is to figure out how to make all the pictures align from left to right side by side. the issue is, the row setting for additional images is 10. when i only have 2, the first image is at the far left and the second image is in the center. check the link below to see what i am talking about

    http://shop.kelleymotorsports.com/in...products_id=85

    this is the code but not sure if something is missing to tell it that or what specifically tells it that.

    #productAdditionalImages {margin:10px 0 0 0; padding:10px 2px 0px 4px; position:relative; width:auto; overflow:hidden; border:solid 1px #000; height:auto; background:url(../images/img.jpg) repeat 50% bottom;}
    #productAdditionalImages #gallery { padding:0; margin:0 0 0 3px; list-style:none;}
    #productAdditionalImages #gallery div{display: inline; text-align:left; position:relative; overflow:hidden; margin:0px 5px 10px 0; width:51px!important; }
    #productAdditionalImages .additionalImages a {height:50px; width:50px; overflow:hidden; position:relative; font-size:17px; text-decoration:none; line-height:20px; font-weight:bold; color:#d50a0a; }
    #productAdditionalImages .additionalImages a:hover{ color:#fb5d5d;}
    #productAdditionalImages .additionalImages a img{ width:50px; height:50px; position:relative; }

    possibly the list-style:none?

  2. #2
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: layout settings for additional images

    Look for this in your files
    <div style="width:50%;" class="additionalImages centeredContent back">
    Remove style="width:50%;"
    and style the class in your stylesheet.
    .additionalImages {
    padding: 0 9px 9px 9px;
    }

  3. #3
    Join Date
    Jul 2012
    Posts
    58
    Plugin Contributions
    0

    Default Re: layout settings for additional images

    are you talking this in the additional images module?

    // List Box array generation:
    $list_box_contents[$row][$col] = array('params' => 'class="additionalImages centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
    'text' => "\n " . $link);
    $col ++;
    if ($col > (IMAGES_AUTO_ADDED -1)) {
    $col = 0;
    $row ++;

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

    Default Re: layout settings for additional images

    Try finding #productAdditionalImages in stylesheet_main.css and add float: left;

    Then add #productAdditionalImages img {margin: 0 1em 0 0;} Adjust the 1em to taste.

    Also, remove stylesheet_main_old.css from the css folder.

  5. #5
    Join Date
    Jul 2012
    Posts
    58
    Plugin Contributions
    0

    Default Re: layout settings for additional images

    Quote Originally Posted by stevesh View Post
    Try finding #productAdditionalImages in stylesheet_main.css and add float: left;

    Then add #productAdditionalImages img {margin: 0 1em 0 0;} Adjust the 1em to taste.

    Also, remove stylesheet_main_old.css from the css folder.
    for the margin part, do i just modify what is already there in the code

    #productAdditionalImages {margin:10px 0 0 0; padding:10px 2px 0px 4px; position:relative; width:auto; overflow:hidden; border:solid 1px #000; height:auto; float: left; background:url(../images/img.jpg) repeat 50% bottom;}
    #productAdditionalImages #gallery { padding:0; margin:0 0 0 3px; list-style:none;}
    #productAdditionalImages #gallery div{display: inline; text-align:left; position:relative; overflow:hidden; margin:0px 5px 10px 0; width:51px!important; }
    #productAdditionalImages .additionalImages a {height:50px; width:50px; overflow:hidden; position:relative; font-size:17px; text-decoration:none; line-height:20px; font-weight:bold; color:#d50a0a; }
    #productAdditionalImages .additionalImages a:hover{ color:#fb5d5d;}
    #productAdditionalImages .additionalImages a img{ width:50px; height:50px; position:relative; }

    also that is where to add the float correct?

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

    Default Re: layout settings for additional images

    Yes, but the margin part probably needs to go in a separate rule for #productAdditionalImages img

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: layout settings for additional images

    Yes, that would be the line to edit. You would have to edit exactly right to avoid creating an error.
    An easier method would be to use a stylesheet override. Ordinarily, inline styling takes precedence over stylesheet rules, but adding !important to the value in a stylesheet declaration will cause that to override any other styling.
    Code:
    .additionalImages {
        width: whatever-you-want !important;
        }

  8. #8
    Join Date
    Jul 2012
    Posts
    58
    Plugin Contributions
    0

    Default Re: layout settings for additional images

    Quote Originally Posted by gjh42 View Post
    Yes, that would be the line to edit. You would have to edit exactly right to avoid creating an error.
    An easier method would be to use a stylesheet override. Ordinarily, inline styling takes precedence over stylesheet rules, but adding !important to the value in a stylesheet declaration will cause that to override any other styling.
    Code:
    .additionalImages {
        width: whatever-you-want !important;
        }
    i already placed in the stylesheet_main the following that is working

    #productAdditionalImages img {margin: 0 1em 0 0;}

    but just wanted to know which number changes the space on top and bottom of images.

  9. #9
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: layout settings for additional images

    Yes, I had chosen the harder route.

    I would use this

    #productAdditionalImages img {
    border: 1px solid #C0C0C0;
    margin: 0 9px 9px 0;
    }

    The order is
    top right bottom left

 

 

Similar Threads

  1. Additional Images Layout
    By caesartrading in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Jun 2011, 02:25 AM
  2. Layout of Additional of Additional Product Images - Possible Bug?
    By RatMonkey in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Mar 2011, 02:21 PM
  3. Layout for additional images
    By libragear in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 May 2008, 05:30 PM
  4. layout changes for additional images
    By fyrestorm in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Nov 2007, 04:57 AM
  5. Layout for Additional Images
    By ladyink in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Oct 2007, 01:08 PM

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