Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2007
    Posts
    9
    Plugin Contributions
    0

    Default product listing heading issue in IE

    Hello,

    I am new to Zen Cart, and new to this forum, so bear with me!

    I have created a custom template for a client, and am still in the midst of modifying various things on my own server...

    I've added a background image to the product listing table header. It looks fine in FF, but in IE, the background image is repeated behind the text, so there is an overlap. See example:
    http://www.traceymillerdesigns.com/c...ex&cPath=26_27

    When I view the source code, I can SEE what the problem is, but I can't for the life of me figure out how -- or where?? -- to fix it. Any help would be greatly appreciated. Thanks!

    Tracey

  2. #2
    Join Date
    Sep 2007
    Posts
    219
    Plugin Contributions
    0

    Default Re: product listing heading issue in IE

    Hi Tracy,

    Interesting problem, this is a known issue in IE, when you put a background image into a table row, each cell displays the image from the begining instead of continuing from where the last image left off, thus you get the layout issue you are experiencing.

    I think I may have a solution though, if you apply the background image to the indivdual cells rather then the row you can then manipulate them by using background-position.

    So if you remove

    PHP Code:
    tr.productListing-rowheading {
        
    color#506962;
            
    background-imageurl(../images/bg_seashellstrip.gif);
        
    background-repeatrepeat-x;
        
    height36px;
        
    padding-bottom5px;

    and replace it with,

    PHP Code:
    #listCell0-0.productListing-heading, #listCell0-1.productListing-heading, #listCell0-2.productListing-heading  {
    background-color:#fff;
    background-image:url(http://www.traceymillerdesigns.com/clients/sacobayclassics/store/includes/templates/sacobayclassics/images/bg_seashellstrip.gif);
        
    background-repeatrepeat-x;
        
    height34px;
    }

    #listCell0-1.productListing-heading {
        
    background-position: -4px 0;
    }

    #listCell0-2.productListing-heading {
        
    background-position: -19px 0;

    You will get the illusion that it is still one large image while keeping IE and Firefox happy

    I did quickly try this and it looks ok in IE7 and Firefox 2, you should test IE6 and the other popular browsers though

    Let me know how you get on

  3. #3
    Join Date
    Oct 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: product listing heading issue in IE

    Works like a charm! Thanks so much for your reply!

 

 

Similar Threads

  1. v151 Extraneous Hyphen, Product Listing Heading
    By KenBaker in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 18 Mar 2014, 02:06 AM
  2. Product Listing Heading Formats Incorrectly in IE
    By ScriptJunkie in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Jan 2011, 05:00 AM
  3. product listing row heading
    By studeo in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 5 May 2007, 12:51 AM
  4. product listing heading issue
    By iano in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Oct 2006, 06:50 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