Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2012
    Posts
    109
    Plugin Contributions
    0

    Default Additional image space

    Hi all, I seem to be having a problem with the space of the additional images, as Zen Cart is giving it a value of 33% for 3 images per page and 50% for 2 images per page. I first thought this would be an override in the CSS in terms of layout, however when I right click and inspect element, it appears this element {33%} is not in the CSS file. I then did a search in the PHP and yet to find any values of 33% and and 50%.

    Can anybody shed some light on this, and if there is a fix for the layout.

    Thanks.

  2. #2
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Additional image space

    I think you will find that the value is calculated dynamically based on the columner display code that creates the output.

    if you want to bypass it you will have to custom code the output to not use the columner display.
    Phil Rogers
    A problem shared is a problem solved.

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

    Default Re: Additional image space

    You can override the dynamic width by making a CSS rule for the element specifying

    width: 123px !important;
    or
    width: 24% !important;

    The !important gives this rule precedence over inline styling.

  4. #4
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Additional image space

    Quote Originally Posted by gjh42 View Post
    You can override the dynamic width by making a CSS rule for the element specifying

    width: 123px !important;
    or
    width: 24% !important;

    The !important gives this rule precedence over inline styling.
    Learn something new every day! I always thought inline took precedence over css. Or is it that it does unless the css is set a important?
    Phil Rogers
    A problem shared is a problem solved.

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

    Default Re: Additional image space

    That's one of the main reasons for the !important tag, to allow stylesheets to take precedence over inline styling where necessary.
    The tag is also good for giving individual element rules precedence over bigger rules that have enough specificity to otherwise control the styling. It can be used as a crutch, though; better to rework other rules where practical than just brute-force a new rule over the existing ones.

  6. #6
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Additional image space

    good to know! thanks for the info, its great
    Phil Rogers
    A problem shared is a problem solved.

 

 

Similar Threads

  1. v154 Additional images issue when space used in image name
    By swguy in forum Bug Reports
    Replies: 1
    Last Post: 20 Feb 2015, 08:31 AM
  2. Too much space in between additional images
    By dddmx3 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 May 2011, 07:10 AM
  3. Remove Additional Space on Contact Page
    By CompuWeb in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Jan 2011, 03:56 PM
  4. Remove "larger image" and space from additional images
    By cchan in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 6 Dec 2010, 04:46 AM
  5. too much space between additional images...
    By khopek in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Jan 2007, 08:18 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