Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2008
    Posts
    101
    Plugin Contributions
    0

    Default Product Images Stacking in IE7

    So, I've gotten the look I want in both FF and Safari, but I've noticed in IE7 that the product images are not side-by-side under the New Products box, but instead are one on top to the other. From browsing other threads, this might be because I have defined the horizontal value for my images in Zen Cart admin, but I am leaving the vertical height blank because my images come in various sizes and I don't want them to be squished.

    So... is there a workaround for this? Have I just screwed something up?

    Here is a link to the front page of my Web site where you can see the problem in the lower part of the page. Please bear in mind that my Web site is Not Safe For Work and shows cartoon guys in their underwear and kissing (although not at the same time...).

    https://store.yaoi911.com/

    Thank you very much for any help you can offer!

    Alex
    Zen Cart 1.3.8a - Database Patch Level: 1.3.8 - PHP Version 5.2.6

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

    Default Re: Product Images Stacking in IE7

    You might be able to fix it by making your mainWrapper a little wider.

    Also check post #9 here:

    http://www.zen-cart.com/forum/showthread.php?t=113491

    That may not necessarily be the best answer, but it worked in that case.

  3. #3
    Join Date
    Sep 2008
    Posts
    101
    Plugin Contributions
    0

    Default Re: Product Images Stacking in IE7

    stevesh,

    You rock!

    In includes/modules/my_template/new_products.php, changing this code:

    Code:
    // show only when 1 or more
    if ($num_products_count > 0) {
      if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS == 0 ) {
        $col_width = floor(100/$num_products_count);
      } else {
        $col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS);
      }
    to this code

    Code:
    // show only when 1 or more
    if ($num_products_count > 0) {
      if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS == 0 ) {
        $col_width = floor(98/$num_products_count);
      } else {
        $col_width = floor(98/SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS);
      }
    did the trick!

    (Now I'll make that change in featured_products.php as well...)

    Thank you so much for your help!

    Alex
    Zen Cart 1.3.8a - Database Patch Level: 1.3.8 - PHP Version 5.2.6

 

 

Similar Threads

  1. Extra Images are stacking instead of rows.
    By Ralyn in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Mar 2015, 06:39 PM
  2. additional images incorrect display in IE7
    By gsdcypher in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 14 Mar 2009, 06:28 PM
  3. Floating images in IE7
    By deathman in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 25 Nov 2008, 03:51 PM
  4. Background Images, IE7 vs FireFox Issues
    By craig-heavygoods in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 May 2008, 01:21 PM
  5. Small images disappear in IE7
    By ichthyous in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 6 Aug 2007, 12:34 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