Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2005
    Posts
    123
    Plugin Contributions
    0

    Default Help with overlapping images (featured products)

    I have been working on the following site www.stock-basket.com and although it is still largely unfinished I have a very annoying problem at this early stage!

    I wanted the featured box on the frontpage to only have 2 items and to be aligned on the right of the define_main_page etc. I have managed this changing the default ordering for the frontpage items in tpl_index_default.php so that it now goes: Featured Products > Define_Main_Page > New products and then added this to the stylesheet:

    #featuredProducts {
    float:right;
    width:25em;



    }

    .centerBoxContentsNew img {
    border: 1px solid #000;
    }

    .centerBoxContentsFeatured img {
    margin: 2em 0;
    padding:1% 2% 0 2%;

    }

    This has floated the featured products box to the right of the main_page text but the images are horribly aligned and overlap - any ideas please?


    Thanks

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Help with overlapping images (featured products)

    I suspect that you've told the featured products box to display 4 across, so its only allocating 25% of the 25em width to each image. That's not enough, so they overlap ... except in IE6 which isn't clever enough to find that solution to the "too little space" space. It can't display your png product images properly either, and gives them an ucky blue background.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Mar 2005
    Posts
    123
    Plugin Contributions
    0

    Default Re: Help with overlapping images (featured products)

    Nope - I've just double checked and the featured box is set to display 2 products...????

    I wasn't aware of the IE6 / PNG problem, eventually I want to add a dark grey background image "under" the main page content so that it shows through the images transparacy... But that's my next problem :)

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Help with overlapping images (featured products)

    Quote Originally Posted by twdhosting View Post
    Nope - I've just double checked and the featured box is set to display 2 products...????
    I take it that's the admin setting. Default Zen Cart divides this figure into 100% to get them width of each product box. You template however, is coming up with 25% instead of 50% which makes me wonder whether your template's author has hard-coded the 25%. In which case you would need to find where and fix it.

    Quote Originally Posted by twdhosting View Post
    I wasn't aware of the IE6 / PNG problem, eventually I want to add a dark grey background image "under" the main page content so that it shows through the images transparacy... But that's my next problem :)
    Just bear in mind that there is no transparency for png files if your visitors are using IE6, and that the flashier the design that assumes it, usually the worse it looks for this diminishing but still significant audience.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Mar 2005
    Posts
    123
    Plugin Contributions
    0

    Default Re: Help with overlapping images (featured products)

    Thanks Kuroi - and your a genius... :)

    Well actually the 4 columns were not hard coded but it got me to looking harder at the zen admin settings - and I had missed one: "Featured Products Columns per Row" - I had altered the setting under "maximum values" for the featured products box but this one was hidden under "Index Listing".

    As for the IE6 issue... I'm not sure what to do!

 

 

Similar Threads

  1. v152 Featured Products Listing Overlapping Images
    By obrien48 in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 26 Feb 2014, 11:00 PM
  2. v139h Have a problem with my Site Seal overlapping on images
    By PearceStephens in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 14 Nov 2012, 09:55 PM
  3. Overlapping of Attribute Images - Help please!
    By hditems in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 8 Jan 2011, 05:19 PM
  4. Help with New Products and Featured Products on Home Page
    By AirsoftOutfitter in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Mar 2010, 01:28 AM
  5. Help with Featured Products
    By ilsita in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 23 Oct 2009, 05:34 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR